Example #1
0
 /// <summary>
 /// The Init method initializes the instance of the
 /// session with the corresponding IpcModule that is
 /// provided by the VfxTcpAcceptor implementation.
 /// </summary>
 /// <param name="ipcModule">
 /// The IPC module that represents the communication
 /// session with the peer system.
 /// </param>
 public void Init(IVfxIpcModule ipcModule)
 {
     // REC: Maintain a reference to the associated
     // instance of an IPC module:
     _ipcModule = ipcModule;
     // REC: Bind to the IPC module's event dispatcher
     // for forwarding IPC events to the endpoint that
     // owns the session:
     _ipcModule.EventDispatch += HandleDispatch;
     // REC: Activate the IPC module:
     _ipcModule.Activate();
 }
Example #2
0
 /// <summary>
 /// The Init method initializes the instance of the
 /// session with the corresponding IpcModule that is
 /// provided by the VfxTcpAcceptor implementation.
 /// </summary>
 /// <param name="ipcModule">
 /// The IPC module that represents the communication
 /// session with the peer system.
 /// </param>
 public void Init(IVfxIpcModule ipcModule)
 {
     // REC: Maintain a reference to the associated
     // instance of an IPC module:
     _ipcModule = ipcModule;
     // REC: Bind to the IPC module's event dispatcher
     // for forwarding IPC events to the endpoint that
     // owns the session:
     _ipcModule.EventDispatch += HandleDispatch;
     // REC: Activate the IPC module:
     _ipcModule.Activate();
 }