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)); }
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)); }
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)); }
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)); }
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)); }
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(); }