Re: [Firebird-net-provider] Events

2017-01-10 Thread Jiří Činčura
> is it neccessary or recommended to dispose a FbRemoteEvent with this new
> release? (I assume it should be disposed)

Yes, it's recommended. It's the only way to close the underlying socket.
 
> Number of events: Is this the number the program can listen to or
> something different?

Yes.

-- 
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


Re: [Firebird-net-provider] Events

2017-01-10 Thread Nikolaus Kern
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 

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


[Firebird-net-provider] Events

2017-01-10 Thread Jiří Činčura
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


[Firebird-net-provider] Events on FbBatchExecution firing opinion

2015-07-02 Thread Jiří Činčura
Hi *,

I would like to hear some opinions on 
http://tracker.firebirdsql.org/browse/DNET-390?focusedCommentId=29671&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_29671
 . What do you think?

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

--
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


[Firebird-net-provider] Events in FirebirClient.net netcf

2008-09-01 Thread Joaquim Pais
Hello,

 

I'am using firebirdclient.net for compact framework, and I register 2
events. 

When first event occurred this events is capturated for my application, when
second event occurred my application detected first event and second event.

 

I have following code

FbRemoteEvent revent = new FbRemoteEvent(connection);

  revent.AddEvents(new string[] { "TERMINAL1","TERMINAL2" });

  

 

  revent.RemoteEventCounts += new FbRemoteEventEventHandler(EventCounts);

  

  

  revent.QueueEvents();

  

 static void EventCounts(object sender, FbRemoteEventEventArgs args)

 {

 if(args=="TERMINAL1")

{

   

}

 else  if(args=="TERMINAL2")

{

   

}

 

 }

 

 

How resolve my problem?

 

Regards

-
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Events question

2007-04-19 Thread Christian Nylund

It seems it fires once for every trigger I have added with the line

revent.AddEvents(new string[] { "OnXXX", "OnYYY", "OnZZZ", "On123"});

even if only the "OnXXX" was actually fired. Is it supposed to do that? It's 
easy to work around it but it still seems a little odd to me.

Christian

-Ursprungligt meddelande-
Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] För Jiri Cincura
Skickat: den 19 april 2007 18:32
Till: For users and developers of the Firebird .NET providers
Ämne: Re: [Firebird-net-provider] Events question

Christian Nylund wrote:
> I always get six events every time a trigger in my database is fired. Is that
> always the case or am I doing something wrong? obviously I only want to
> respond to one of them. Any ideas on how to achieve that?

You're probably doing something wrong.

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


Re: [Firebird-net-provider] Events question

2007-04-19 Thread Jiri Cincura
Christian Nylund wrote:
> I always get six events every time a trigger in my database is fired. Is that
> always the case or am I doing something wrong? obviously I only want to
> respond to one of them. Any ideas on how to achieve that?

You're probably doing something wrong.

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

-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider


[Firebird-net-provider] Events question

2007-04-19 Thread Christian Nylund

I always get six events every time a trigger in my database is fired. Is that
always the case or am I doing something wrong? obviously I only want to
respond to one of them. Any ideas on how to achieve that?
-- 
View this message in context: 
http://www.nabble.com/Events-question-tf3606996.html#a10077329
Sent from the firebird-net-provider mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Firebird-net-provider mailing list
Firebird-net-provider@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider