示例#1
0
        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());
            }
        }
示例#2
0
 public OBSRemoteService(ServiceConfig config)
 {
     Config = config;
     Status = new StatusBase();
 }
示例#3
0
 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()));
 }