Example #1
0
        public SamV3StatefulAcceptor Dequeue()
        {
            SamV3StatefulAcceptor listener = this.Listener;

            this.Create(false);
            return(listener);
        }
Example #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;
         }
     }
 }
Example #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;
     }
 }