public void StartHttpServer(ServiceConfig config) { var textPort = config.GetParameterValue("Port") as string; int.TryParse(textPort, out this.port); if (this.port <= 0 || this.port > 65535) { Log.WriteError("Invalid port specified for web server"); return; } if (!is_active) { is_active = true; Task.Factory.StartNew(() => Listen()); } }
public OBSRemoteService(ServiceConfig config) { Config = config; Status = new StatusBase(); }
public ChatToImageService(ServiceConfig config) { Config = config; Status = new StatusBase(); }
public WebServerService(ServiceConfig config) : base(config.GetParameterValue("Port")) { Config = config; Status = new StatusBase(); imageDataSource = SimpleIoc.Default.GetInstance <IImageDataSource>(); }
public ChatToFileService(ServiceConfig config) { Config = config; Status = new StatusBase(); AppendText(String.Format("Log started: {0}", DateTime.Now.ToString())); }