public SamV3StatefulAcceptor Dequeue() { SamV3StatefulAcceptor listener = this.Listener; this.Create(false); return(listener); }
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; } } }
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; } }