private unsafe Mpos(AbecsStream stream, string encryptionKey, string storagePath) { NotificationPin = HandleNotificationCallback; OperationPin = HandleOperationCompletedCallback; this.stream = stream; EncryptionKey = encryptionKey; StoragePath = storagePath; nativeMpos = Native.Create(stream, NotificationPin, OperationPin); TMSStorage = new TMSStorage(storagePath); }
protected virtual void Dispose(bool disposing) { if (disposing) { if (stream != null) { stream.Dispose(); stream = null; } } if (nativeMpos != IntPtr.Zero) { Native.Free(nativeMpos); } }
protected unsafe IntPtr Convert(AbecsStream stream) { return((IntPtr)stream.NativeStream); }
public IntPtr Create(AbecsStream stream, MposNotificationCallbackDelegate notificationCallback, MposOperationCompletedCallbackDelegate operationCompletedCallback) { return(CreateExtern(Convert(stream), notificationCallback, operationCompletedCallback)); }
public static IntPtr Create(AbecsStream stream, MposNotificationCallbackDelegate notificationCallback, MposOperationCompletedCallbackDelegate operationCompletedCallback) { return(Dll.Create(stream, notificationCallback, operationCompletedCallback)); }