예제 #1
0
 public override void ActivateOptions()
 {
     if (Active)
     {
         if (Host == null)
         {
             Host = DefaultHostFinder.FindLocalIp();
         }
         _channel = _channelFactory.Create(Host, Port, Buffer);
     }
 }
예제 #2
0
        protected override void InitializeTarget()
        {
            base.InitializeTarget();

            if (Active)
            {
                if (Host == null)
                {
                    Host = DefaultHostFinder.FindLocalIp();
                }
                _channel = _channelFactory.Create(Host, Port, Buffer);
            }
        }