Example #1
0
		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;
			}
		}
Example #2
0
 public Builder()
 {
     this.data = new Collection.List <Generic.IEnumerable <char> >();
 }
Example #3
0
 public void Dispose()
 {
     if (this.Writers.NotNull())
     {
         this.Writers.Apply(writer => writer.Close());
         this.Writers = null;
     }
 }