Jiri. 
I got it working. Thanks.

For those interested - be sure to test for Event count ( args.count ) as
well. 
The QueueEvents will loop through the whole event list. 


Jiri, 
What could be done where if I wanted to only raise the event for 1 event
(the event being posted), aside from showing all registered events? 

Take for example this snip of code: 

FbRemoteEvent EventComp = new FbRemoteEvent(FireBirdConnection, new
string[] { 
"event1","event2","event3","eventN" });
EventComp.RemoteEventCounts += new
FbRemoteEventEventHandler(ProcessEvent);
EventComp.QueueEvents();

Function ProcessEvent would actually be called 4 times or N times
depending on how many events you are listening to. I'm interested in
picking up just 1 - say only "event1" if it was the only event posted.


Thanks, 
Charlie 




-----Original Message-----
From: Jiri Cincura [mailto:disk...@cincura.net] 
Sent: Tuesday, March 24, 2009 5:54 PM
To: For users and developers of the Firebird .NET providers
Subject: Re: [Firebird-net-provider] [FB-Tracker] Reopened:
(DNET-171)Implementing IDisposable interface and possibility to
stopSocket operations in FbRemoteEvent

On Tue, Mar 24, 2009 at 22:21, Charlie Xiong <xio...@yadasystems.com>
wrote:
> Hopefully I didn't miss any news on this but, I was wondering if there

> has been any improvements toward .Net's event posting and 
> listening/receiving mechanism.

Yes, a lot. Thread synchronization, proper ending of connection, fixed
port reading, IP reading if server behind NAT just couple of thinks I
recall right now.

> Specifically the desire of registering multiple events per connection.
> i.e.
> EventComp = new FbRemoteEvent(FireBirdConnection, new string[] { 
> "event1","event2","event3","eventN" });

That's working. Don't forgot to start listening for events calling
QueueEvents.

--
Jiri {x2} Cincura (CTO x2develop.com)
http://blog.vyvojar.cz/jirka/ | http://www.ID3renamer.com

------------------------------------------------------------------------
------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based
development software that enables intelligent coding and step-through
debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

------------------------------------------------------------------------------
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to