示例#1
0
 public void onStatusChanged(O2GTableManagerStatus status, O2GTableManager tableManager)
 {
     SyncContext.Post(delegate(object state)
     {
         if (mComListener != null)
         {
             EvState evState = (EvState)state;
             mComListener.ManagerStatusChanged((TableManagerStatus)(int)evState.Status, (ITableManager)Utils.CheckWrapperForNativeNull(new TableManager(evState.TableManager, evState.Session)));
         }
     }, new EvState(status, tableManager, mSession));
 }
示例#2
0
 public void onTablesUpdates(O2GResponse data)
 {
     SyncContext.Post(delegate(object state)
     {
         if (mComListener != null)
         {
             EvState evState = (EvState)state;
             mComListener.TablesUpdates(new Response(evState.Response, evState.Session));
         }
     }, new EvState(null, data, mSession));
 }
示例#3
0
 public void onRequestFailed(string requestId, string error)
 {
     SyncContext.Post(delegate(object state)
     {
         if (mComListener != null)
         {
             EvState evState = (EvState)state;
             mComListener.RequestFailed(evState.RequestId, evState.Error);
         }
     }, new EvState(requestId, error, mSession));
 }
示例#4
0
 public void onRequestCompleted(string requestId, O2GResponse response)
 {
     SyncContext.Post(delegate(object state)
     {
         if (mComListener != null)
         {
             EvState evState = (EvState)state;
             mComListener.RequestCompleted(evState.RequestId, new Response(evState.Response, evState.Session));
         }
     }, new EvState(requestId, response, mSession));
 }
示例#5
0
 public void  onEachRow(string rowID, O2GRow rowData)
 {
     SyncContext.Post(delegate(object state)
     {
         if (mComListener != null)
         {
             EvState evState = (EvState)state;
             mComListener.EachRow(evState.RowID, new Row(evState.Row, evState.Session));
         }
     }, new EvState(rowID, rowData, mSession));
 }
示例#6
0
 public void onPutInQueue(O2GRow rowData)
 {
     SyncContext.Post(delegate(object state)
     {
         if (mComListener != null)
         {
             EvState evState = (EvState)state;
             mComListener.UpdateEventQueuePutInQueue(new Row(evState.Row, evState.Session));
         }
     }, new EvState(rowData, mSession));
 }
            // TODO: Implement SMB
            //internal SMBHelper _smb;

            /// <summary>  Constructs an EvDisp and starts its thread</summary>
            public EvDisp(MessageDispatcher dispatcher)
            {
                fDispatcher = dispatcher;
                _state = new EvState();
                _idle = new Object();
            }