Пример #1
0
        public SamV3StatefulAcceptor Dequeue()
        {
            SamV3StatefulAcceptor listener = this.Listener;

            this.Create(false);
            return(listener);
        }
Пример #2
0
 private void Create(bool rethrow)
 {
     try
     {
         this.Listener = new SamV3StatefulAcceptor(this.Session);
         this.Listener.Handshake();
         this.Listener.AcceptRequest();
         this.IsAccepting = true;
     }
     catch (Exception)
     {
         this.IsAccepting = false;
         if (rethrow)
         {
             throw;
         }
     }
 }
Пример #3
0
 private void Create(bool rethrow)
 {
     try
     {
         this.Listener = new SamV3StatefulAcceptor(this.Session);
         this.Listener.Handshake();
         this.Listener.AcceptRequest();
         this.IsAccepting = true;
     }
     catch (Exception)
     {
         this.IsAccepting = false;
         if (rethrow)
             throw;
     }
 }