Exemplo n.º 1
0
 public Handler(
     InitializeHandler initialize,
     TerminateHandler terminate,
     LoginHandler login,
     ConnectHandler connect,
     LatencyHandler latency,
     DisconnectHandler disconnect,
     RoomHandler room,
     RoomsPageHandler roomsPage,
     RoomOperationHandler roomOperation,
     DataHandler data,
     ForeignDataHandler foreignData,
     LogHandler log)
 {
     Initialize    = initialize;
     Terminate     = terminate;
     Login         = login;
     Connect       = connect;
     Latency       = latency;
     Disconnect    = disconnect;
     Room          = room;
     RoomsPage     = roomsPage;
     RoomOperation = roomOperation;
     Data          = data;
     ForeignData   = foreignData;
     Log           = log;
 }
Exemplo n.º 2
0
        public Api(string dllPath, CallBack callback)
            : base(dllPath)
        {
            _initialize   = GetHandler <InitializeHandler>("Initialize");
            _uninitialize = GetHandler <UninitializeHandler>("UnInitialize");
            _freeMemory   = GetHandler <FreeMemoryHandler>("FreeMemory");
            _setLogLevel  = GetHandler <SetLogLevelHandler>("SetLogLevel");
            _sendCommand  = GetHandler <SendCommandHandler>("SendCommand");
            _setCallback  = GetHandler <SetCallbackHandler>("SetCallback");
            //_setCallbackEx = GetHandler<SetCallbackExHandler>("SetCallbackEx");

            _callback = callback;

            SetCallback(_callback);

            // SetCallbackEx(OnCallBackEx, IntPtr.Zero);
        }
Exemplo n.º 3
0
		public Api(string dllPath, CallBack callback)
			: base(dllPath)
		{
			_initialize = GetHandler<InitializeHandler>("Initialize");
			_uninitialize = GetHandler<UninitializeHandler>("UnInitialize");
			_freeMemory = GetHandler<FreeMemoryHandler>("FreeMemory");
			_setLogLevel = GetHandler<SetLogLevelHandler>("SetLogLevel");
			_sendCommand = GetHandler<SendCommandHandler>("SendCommand");
			_setCallback = GetHandler<SetCallbackHandler>("SetCallback");
			//_setCallbackEx = GetHandler<SetCallbackExHandler>("SetCallbackEx");

			_callback = callback;
			
			SetCallback(_callback);
			
			// SetCallbackEx(OnCallBackEx, IntPtr.Zero);
		}
Exemplo n.º 4
0
 public Handler(
     InitializeHandler initialize,
     TerminateHandler terminate,
     LoginHandler login,
     ConnectHandler connect,
     LatencyHandler latency,
     DisconnectHandler disconnect,
     DataHandler data,
     ForeignDataHandler foreignData,
     LogHandler log)
 {
     Initialize  = initialize;
     Terminate   = terminate;
     Login       = login;
     Connect     = connect;
     Latency     = latency;
     Disconnect  = disconnect;
     Data        = data;
     ForeignData = foreignData;
     Log         = log;
 }