[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xAPFramework Plugins
- Subject: Re: xAPFramework Plugins
- From: Stuart Booth
- Date: Sun, 09 Nov 2003 11:33:00 +0000
On Sun, 9 Nov 2003 10:46:40 -0000, "Paul Barrett"
<<a
href="/group/xAP_developer/post?postID=IP3Jns2sTGfomvMRZMDTGzRHJDmm2jbBHCePpc3TpUHs_gwIWC93RUOJ5zxMlMgYp98KrQy778_AO4zsODI">pbarrett@r...</a>>
wrote:
>I am trying to get the NewMailOSD plugin to work with the Console
Runtime.
Whoa, you're really going for it! :-))
>I found I had to put all the Framework dll's in the Plugins directory
along
>with the NewEmailOSD.dll, Is this normal?
No, that isn't. If you unpack any of the ready-packed plugin based
EXEs from here:
<<a href="http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=4">http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=4</a>>
You'll see that the xAPFramework and related DLLs live in the
Utilities and xAPFramework subdirectories.
You can instruct .net to probe for necessary DLLs in different
locations rather than having all the files in the one place. I think
it looks much neater. And it allows version overrides to be setup to
use that version of the DLL over there rather than this one here. But
tidying up the root dir. is about as far as I've gone so far.
In your main EXE's .config file (xAPConsole.exe.config??) do you have
the following at the top:
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<probing privatePath="xAPFramework.net;Utilities;" />
</assemblyBinding>
</runtime>
I believe the download should as the sample file my web package
utility pulls in does. In fact it has a CallerID directory on the end
too, but for your experiments, the above is sufficient.
It might be worth comparing your environment to the ready-packed
version here:
<<a href="http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=42">http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=42\
</a>>
>Once the dll's are in the Plugins directory and I run the
xAPConsole.exe it
>loads the plugin with the following info
> Loading Plugins... 1 plugin loaded
> ---------------------------------------------------
> xAP New Email OSD (v1.2.8.0)
> Displaying NEW e-mail alerts
> Displaying e-mail quantity status notifications
>The Displaying lines change as I change the xAPConsole.exe.config file
as
>I'd expect but the plugin never seems to receive any messages. Any
Ideas
>what I'm doing wrong?
What messages are you sending to it? You need to send it some
Mail.Incoming.New messages to kick it into life. The POP3 Mailbox
Monitor application from here does that:
<<a href="http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=40">http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=40\
</a>>
Or you can use the Send application from further down the page here:
<<a href="http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=4">http://www.xapframework.net/modules.php?name=Downloads&d_op=viewdownload&cid=4</a>>
to send a message such as this:
xap-header
{
v=12
Hop=1
UID=FF123400
Class=Mail.Incoming.New
Source=KCSoft.Send.Anya
}
Message
{
To="Stuart Booth" <<a
href="/group/xAP_developer/post?postID=OHbbBdIGPsP2cFrCBVZfJmz6KZ70JHsRi-51M4wKMA1lgEVhHMcq5NX9geUQeLj92oUkSr0IIOZwRzMQPHP9">stuart@x...</a>>
<a
href="/group/xAP_developer/post?postID=4tWj8lg2irWgP1LxyoCNGH9x1_K_roKEhF7r_QO5qJfcrNrzr0OZawVmgEgsP1Cq9zuoH4Y14a0DFJ4PQHCVKoOhgM7xbg">From=stuart@x...</a>
Subject=New Email Notifications
Timestamp=Sun, 05 Oct 2003 17:46:55 +0100
Msg=1
Total=1
Org=xAPFramework.net
}
That ought to wake it up. Oh, and there's a few in the SampleMessages
folder of the NewEmailOSD download. If you install Send it will
associate .xap files with it so you just need to 2x click them to fire
them off. *Extremely* useful for testing and developing.
The other thing to check is that it isn't running as a Hub Client
where there is no Hub running. That shouldn't happen though as things
generally work with the Auto setting. The banner at the top when the
app starts will tell you if it's a Hub or a Client.
>One other thing the Source I converted to VB.NET is version 1.2.7.0 but
the
>binary I downloaded to test with is version 1.2.8.0, Is there much
>difference between the two?
I had a quick gander in my ChangeHistory.txt file and it seems that I
added basic message filtering in v1.2.8.0. Ahh, I recall now. Max was
asking after that so I added in something for him to test but as I
wasn't satisfied with the code I never bothered to upload the latest
source.
It's less you need to convert if you stick with v1.2.7.0 actually,
although you could obviously just cut out what you don't need. My
development version here tidies up the output where there's a full
user name which looks a lot neater most of the time. I haven't
uploaded that yet.
>BTW I like the way the plugin setup works!! and I think I'll use it for
my
>xAP-485 Bridge as I didn't realy think abount the UI.
Excellent! You're bound to have more questions this way as there's a
lot more going on under the hood of xAPFramework to accomplish this.
And no doubt you'll stretch it in ways I haven't even thought of.
All you need to do to enable it as a Windows Service is copy that one
key DLL into the Plugins folder of the xAPService.exe runtime,
configure the .config file as necessary and then use InstallUtil on
xAPService.exe to install it. Job done, brand new service, no new
code.
S
--
Stuart Booth <<a
href="/group/xAP_developer/post?postID=OHbbBdIGPsP2cFrCBVZfJmz6KZ70JHsRi-51M4wKMA1lgEVhHMcq5NX9geUQeLj92oUkSr0IIOZwRzMQPHP9">stuart@x...</a>>
xAPFramework.net - a xAP software development framework for .net
<a href="http://www.xapautomation.org/">http://www.xapautomation.org/</a>
<a href="http://www.xapframework.net/">http://www.xapframework.net/</a>
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|