Hello Jiri,

is it neccessary or recommended to dispose a FbRemoteEvent with this new 
release? (I assume it should be disposed)

Number of events: Is this the number the program can listen to or something 
different?

Thanks

Niko

-----Ursprüngliche Nachricht-----
Von: Jiří Činčura [mailto:j...@cincura.net] 
Gesendet: Dienstag, 10. Jänner 2017 11:32
An: For users & developers of the Firebird .NET providers 
<firebird-net-provider@lists.sourceforge.net>
Betreff: [Firebird-net-provider] Events

Hi *,

The events code was not much reliable and I recently got time to work on it to 
improve it. So in foreseeable future the changes from `events` branch will be 
merged and new version will be released. Given it's breaking changes it's going 
to be very very likely new major version.

Here's a simple demo code to see how it works now:
https://github.com/cincuranet/FirebirdSql.Data.FirebirdClient/blob/events/Provider/src/FirebirdSql.Data.UnitTests/FbRemoteEventTests.cs#L40

The major changes are:
* Number of events is now limited to ushort.MaxValue. FTW!
* FbRemoteEvent now takes connection string instead of FbConnection (so it's 
connection independent).
* It implements IDisposable.
* The RemoteEventCounts event is fired for every event fired with some count 
(aka Count > 0).
* There's a new event RemoteEventError allowing you to be notified in case i.e. 
the events channel is broken and exception is thrown.
* No extra threads are created or used.

That's about it. Questions?

--
Mgr. Jiří Činčura
Independent IT Specialist

------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors Access to Intel Xeon Phi 
processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi 
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

Reply via email to