Firebird dispatches all events in .NET.

Is a regular firebird server send all logged event counts when any logged event fails?

For example, on the firebirds website, I do this:

class FirebirdListenerTest { public FirebirdListenerTest() { try { FbConnectionStringBuilder cs = new FbConnectionStringBuilder(); cs.DataSource = "localhost"; cs.Database = "C:\\FIREBIRD\\TEST.GDB"; cs.UserID = "SYSDBA"; cs.Password = "masterkey"; cs.Charset = "NONE"; FbConnection connection = new FbConnection(cs.ToString()); connection.Open(); FbRemoteEvent revent = new FbRemoteEvent(connection); revent.AddEvents(new string[] { "text_changed", "text_inserted", "justtest_event" }); // Add callback to the Firebird events revent.RemoteEventCounts += new FbRemoteEventEventHandler(EventCounts); // Queue events revent.QueueEvents(); Console.ReadLine(); connection.Close(); } catch (Exception e) { Debug.WriteLine(e.ToString()); } } static void EventCounts(object sender, FbRemoteEventEventArgs args) { Console.WriteLine("Event {0} has {1} counts.", args.Name, args.Counts); } } 

In such code, if any of the events is raised, I always get counts for all events. How should this work?

+4
source share
1 answer

Yes it is. You can filter it based on the Counts property, it can be 0-n.

+4
source

All Articles