public Startup(IConfiguration configuration, IHostingEnvironment env) { Configuration = configuration; path = new StaticPath { StatPath = env.WebRootPath }; }
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(); }