public DepotProcessor(SteamClient client, CallbackManager manager) { UpdateScript = Path.Combine(Application.Path, "files", "update.sh"); DepotLocks = new Dictionary <uint, byte>(); CDNClient = new CDNClient(client); CDNServers = new List <string>(); FileDownloader.SetCDNClient(CDNClient); manager.Subscribe <SteamClient.ServerListCallback>(OnServerList); }
public DepotProcessor(SteamClient client) { UpdateScript = Path.Combine(Application.Path, "files", "update.sh"); CDNClient = new CDNClient(client); CDNServers = new List <CDNClient.Server> { new DnsEndPoint("valve500.steamcontent.com", 80) }; CDNClient.RequestTimeout = TimeSpan.FromSeconds(30); FileDownloader.SetCDNClient(CDNClient); }
public DepotProcessor(SteamClient client, CallbackManager manager) { UpdateScript = Path.Combine(Application.Path, "files", "update.sh"); DepotLocks = new Dictionary <uint, byte>(); CDNClient = new CDNClient(client); CDNServers = new List <string> { "valve500.steamcontent.com" }; CDNClient.RequestTimeout = TimeSpan.FromSeconds(30); FileDownloader.SetCDNClient(CDNClient); manager.Subscribe <SteamClient.ServerListCallback>(OnServerList); }
public DepotProcessor(SteamClient client) { UpdateScript = Path.Combine(Application.Path, "files", "update.sh"); CDNClient = new CDNClient(client); CDNServers = new List <CDNClient.Server> { new DnsEndPoint(DefaultServer, 80) }; CDNClient.RequestTimeout = TimeSpan.FromSeconds(30); FileDownloader.SetCDNClient(CDNClient); DepotNameStart = new Regex("^(\u00dalo\u017ei\u0161t\u011b \u2013|\u0425\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0435|D\u00e9p\u00f4t :|Depot|Depot:|Repositorio) ", RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture); DepotNameEnd = new Regex(" (- magazyn zawarto\u015bci|\u03bd\u03c4\u03b5\u03c0\u03cc|\u0441\u0445\u043e\u0432\u0438\u0449\u0435|\u0e14\u0e35\u0e42\u0e1b|\u2013 depot|\u30c7\u30dd|\u4e2a Depot|\uac1c\uc758 \ub514\ud3ec|dep\u00e5|dep\u00f3|Depo|Depot|depot|depotti)$", RegexOptions.Compiled | RegexOptions.CultureInvariant | RegexOptions.ExplicitCapture); }
public DepotProcessor(SteamClient client, CallbackManager manager) { UpdateScript = Path.Combine(Application.Path, "files", "update.sh"); CDNClient = new CDNClient(client); CDNServers = new List <CDNClient.Server> { new DnsEndPoint("valve500.steamcontent.com", 80) }; CDNClient.RequestTimeout = TimeSpan.FromSeconds(30); FileDownloader.SetCDNClient(CDNClient); manager.Subscribe <SteamUser.LoggedOnCallback>(OnLoggedOn); TaskManager.RunAsync(UpdateContentServerList); }
public DepotProcessor(SteamClient client) { UpdateScript = Path.Combine(Application.Path, "files", "update.sh"); UpdateScriptLock = new SpinLock(); DepotLocks = new Dictionary <uint, byte>(); CDNClient = new CDNClient(client); FileDownloader.SetCDNClient(CDNClient); CDNServers = new List <string> { "cdn.level3.cs.steampowered.com", "cdn.akamai.cs.steampowered.com", "cdn.highwinds.cs.steampowered.com" }; }
public DepotProcessor(SteamClient client, CallbackManager manager) { DepotLocks = new ConcurrentDictionary <uint, byte>(); CDNClient = new CDNClient(client); FileDownloader.SetCDNClient(CDNClient); CDNServers = new List <string> { "cdn.level3.cs.steampowered.com", "cdn.akamai.cs.steampowered.com", "cdn.highwinds.cs.steampowered.com" }; manager.Register(new Callback <SteamApps.CDNAuthTokenCallback>(OnCDNAuthTokenCallback)); manager.Register(new Callback <SteamApps.DepotKeyCallback>(OnDepotKeyCallback)); }
public DepotProcessor(SteamClient client) { UpdateScript = Path.Combine(Application.Path, "files", "update.sh"); UpdateScriptLock = new SpinLock(); DepotLocks = new Dictionary <uint, byte>(); DepotThreadPool = new SmartThreadPool(); DepotThreadPool.Concurrency = Settings.Current.FullRun == FullRunState.WithForcedDepots ? 15 : 5; DepotThreadPool.Name = "Depot Thread Pool"; CDNClient = new CDNClient(client); FileDownloader.SetCDNClient(CDNClient); CDNServers = new List <string> { "cdn.level3.cs.steampowered.com", "cdn.akamai.cs.steampowered.com", "cdn.highwinds.cs.steampowered.com" }; }