示例#1
0
 public HttpServer(object context = null, int port = Http.DefaultPort, IVM vm = null, Visualizer visualizer = null, bool discoverable = true)
 {
     this.port        = port;
     this.visualizer  = visualizer ?? new Visualizer(context);
     this.vm          = vm ?? (new VM());
     this.broadcaster = discoverable ? new DiscoveryBroadcaster() : null;
 }
示例#2
0
		public HttpServer (object context = null, int port = Http.DefaultPort, IVM vm = null, Visualizer visualizer = null, bool discoverable = true)
		{
			this.port = port;
			this.visualizer = visualizer ?? new Visualizer (context);
			this.vm = vm ?? (new VM());
			this.broadcaster = discoverable ? new DiscoveryBroadcaster () : null;
		}