private void Clear(bool full)
        {
            lock (_receivedClientInfos)
            {
                _receivedClientInfos.Clear();
            }

            _netTcpConnectedEvent.Reset();
            _basicHttpConnectedEvent.Reset();
            _netTcpDisconnectedEvent.Reset();
            _basicHttpDisconnectedEvent.Reset();
            _clientInfoChangedEvent.Reset();
            NetTcpCallbackReceived.Reset();
            NetTcpThrowCallbackReceived.Reset();

            if (full)
            {
                _basicHttpService = null;
                _netTcpService    = null;
            }
        }
示例#2
0
 public void Initialize(HelloWorldWcfServiceClient proxy)
 {
     this.proxy = proxy;
 }
 private void NetTcpCallback(ConnectionState state, HelloWorldWcfServiceClient service)
 {
     _netTcpState   = state;
     _netTcpService = service;
 }