I'm currently try to learning Reactive programming in C# with trying to convert my old project to Reactive, I use a dll file to connect to a biometric machine, this is some event exposed by the dll, how I can convert this to Observable using Observable.FromEvent?
// I use the event like this,
axCZKEM.OnAttTransactionEx += new _IZKEMEvents_OnAttTransactionExEventHandler(axCZKEM_OnAttTransactionEx);
and this is the generated metadata
#region Assembly Interop.zkemkeeper, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// C:\Project\C#\obj\Debug\Interop.zkemkeeper.dll
#endregion
using System.Runtime.InteropServices;
namespace zkemkeeper
{
[ComVisible(false)]
[TypeLibType(16)]
public delegate void _IZKEMEvents_OnAttTransactionExEventHandler(
string EnrollNumber,
int IsInValid,
int AttState,
int VerifyMethod,
int Year,
int Month,
int Day,
int Hour,
int Minute,
int Second,
int WorkCode);
}