예제 #1
0
 public Startup(IConfiguration configuration, IHostingEnvironment env)
 {
     Configuration = configuration;
     path          = new StaticPath {
         StatPath = env.WebRootPath
     };
 }
예제 #2
0
 public UpdateController(HubConnection connection, IConfiguration config, IStaticpaths path)
 {
     _config     = config;
     _connection = connection;
     _path       = path;
     if (_connection.State == HubConnectionState.Disconnected)
     {
         _connection.StartAsync().GetAwaiter().GetResult();
     }
     PATH = _path.StatPath + @"\Plugins.xml";//config["XmlPath"];
     PluginPathInServer = config["PluginTempPath"];
     MaxFileSizeKB      = int.Parse(config["MaxFileSizeKB"]);
     UpdateJurnal();
 }