public virtual void Dispose() { if (this.listener.NotNull()) this.Stop(); if (this.listener.NotNull()) { this.listener.Abort(); this.listener.Dispose(); this.listener = null; this.tcpListener = null; } if (this.activeConnections.NotNull()) { this.activeConnections.Apply(c => c.Close()); this.activeConnections = null; } }
public Builder() { this.data = new Collection.List <Generic.IEnumerable <char> >(); }
public void Dispose() { if (this.Writers.NotNull()) { this.Writers.Apply(writer => writer.Close()); this.Writers = null; } }