public RemoteServer(RemoteComponent objRemoteComponent, RemoteChannel objRemoteChannel) { Status = RemoteServerStatusType.Stopped; RemoteComponent = objRemoteComponent; RemoteChannel = objRemoteChannel; Channel = null; }
protected virtual void Dispose(bool blnDisposing) { if (_blnIsDisposed == false) { if (blnDisposing == true) { } _objRemoteChannel = null; if (_objReferencePointer != null) { RemotingServices.Unmarshal(_objReferencePointer); _objReferencePointer = null; } if (_objRemoteComponent != null) { RemotingServices.Disconnect(_objRemoteComponent); _objRemoteComponent = null; } if (_objChannel != null) { RemoteChannel.UnRegisterChannel(_objChannel); _objChannel = null; } } _blnIsDisposed = true; }