예제 #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;
     }
 }