예제 #1
0
            public Service.ILWM2MServerService CreateChannel()
            {
                int index;

                lock (this)
                {
                    index = _ServiceIndex = (_ServiceIndex + 1) % _MaxServiceCount;
                }
                if (_Services[index] == null)
                {
                    _Services[index] = new NativeIPCClient(_Host, _Port);
                }
                return(_Services[index]);
            }
예제 #2
0
 public Service.ILWM2MServerService CreateChannel()
 {
     int index;
     lock (this)
     {
         index = _ServiceIndex = (_ServiceIndex + 1) % _MaxServiceCount;
     }
     if (_Services[index] == null)
     {
         _Services[index] = new NativeIPCClient(_Host, _Port);
     }
     return _Services[index];
 }