public Steam() { Client = new SteamClient(); User = Client.GetHandler<SteamUser>(); Apps = Client.GetHandler<SteamApps>(); Friends = Client.GetHandler<SteamFriends>(); UserStats = Client.GetHandler<SteamUserStats>(); CallbackManager = new CallbackManager(Client); Client.AddHandler(new ReadMachineAuth()); new Connection(CallbackManager); new PICSProductInfo(CallbackManager); new PICSTokens(CallbackManager); new LicenseList(CallbackManager); new WebAuth(CallbackManager); new FreeLicense(CallbackManager); if (!Settings.IsFullRun) { new AccountInfo(CallbackManager); new ClanState(CallbackManager); new ChatMemberInfo(CallbackManager); new GameCoordinator(Client, CallbackManager); new Watchdog(); } PICSChanges = new PICSChanges(CallbackManager); DepotProcessor = new DepotProcessor(Client, CallbackManager); IsRunning = true; }
public Steam() { Client = new SteamClient(); User = Client.GetHandler <SteamUser>(); Apps = Client.GetHandler <SteamApps>(); Friends = Client.GetHandler <SteamFriends>(); UserStats = Client.GetHandler <SteamUserStats>(); CallbackManager = new CallbackManager(Client); Client.AddHandler(new ReadMachineAuth()); new Connection(CallbackManager); new PICSProductInfo(CallbackManager); new PICSTokens(CallbackManager); new LicenseList(CallbackManager); new WebAuth(CallbackManager); new FreeLicense(CallbackManager); if (!Settings.IsFullRun) { new AccountInfo(CallbackManager); new ClanState(CallbackManager); new ChatMemberInfo(CallbackManager); new GameCoordinator(Client, CallbackManager); new Watchdog(); } PICSChanges = new PICSChanges(CallbackManager); DepotProcessor = new DepotProcessor(Client); IsRunning = true; }
private Steam() { Configuration = SteamConfiguration.Create(b => b .WithServerListProvider(new FileStorageServerListProvider(Path.Combine(Application.Path, "files", ".support", "servers.bin"))) .WithCellID(LocalConfig.Current.CellID) .WithProtocolTypes(ProtocolTypes.Tcp) .WithWebAPIKey(Settings.Current.Steam.WebAPIKey) ); Client = new SteamClient(Configuration, "SteamDB"); #if DEBUG_NETHOOK Client.DebugNetworkListener = new NetHookNetworkListener(); #endif User = Client.GetHandler <SteamUser>(); Apps = Client.GetHandler <SteamApps>(); Friends = Client.GetHandler <SteamFriends>(); UserStats = Client.GetHandler <SteamUserStats>(); UnifiedMessages = Client.GetHandler <SteamUnifiedMessages>(); CallbackManager = new CallbackManager(Client); Client.AddHandler(new PurchaseResponse()); Handlers = new List <SteamHandler> { new Connection(CallbackManager), new AccountInfo(CallbackManager), new PICSProductInfo(CallbackManager), new PICSTokens(CallbackManager), new LicenseList(CallbackManager), new WebAuth(CallbackManager) }; if (Settings.Current.CanQueryStore) { Handlers.Add(new FreeLicense(CallbackManager)); } if (!Settings.IsFullRun) { Handlers.Add(new ClanState(CallbackManager)); WatchdogHandle = new Watchdog(); } PICSChanges = new PICSChanges(CallbackManager); DepotProcessor = new DepotProcessor(Client, CallbackManager); IsRunning = true; }
private Steam() { Configuration = SteamConfiguration.Create(b => b .WithServerListProvider(new FileStorageServerListProvider(Path.Combine(Application.Path, "files", ".support", "servers.bin"))) .WithCellID(LocalConfig.CellID) .WithProtocolTypes(ProtocolTypes.Tcp) .WithWebAPIBaseAddress(Settings.Current.Steam.WebAPIUrl) .WithWebAPIKey(Settings.Current.Steam.WebAPIKey) ); Client = new SteamClient(Configuration); User = Client.GetHandler <SteamUser>(); Apps = Client.GetHandler <SteamApps>(); Friends = Client.GetHandler <SteamFriends>(); UserStats = Client.GetHandler <SteamUserStats>(); CallbackManager = new CallbackManager(Client); Client.AddHandler(new PurchaseResponse()); new Connection(CallbackManager); new AccountInfo(CallbackManager); new PICSProductInfo(CallbackManager); new PICSTokens(CallbackManager); new LicenseList(CallbackManager); new WebAuth(CallbackManager); if (Settings.Current.CanQueryStore) { new FreeLicense(CallbackManager); } if (!Settings.IsFullRun) { new MarketingMessage(CallbackManager); new ClanState(CallbackManager); new ChatMemberInfo(CallbackManager); new GameCoordinator(Client, CallbackManager); new Watchdog(); } PICSChanges = new PICSChanges(CallbackManager); DepotProcessor = new DepotProcessor(Client, CallbackManager); IsRunning = true; }
private Steam() { Configuration = new SteamConfiguration { ServerListProvider = new FileStorageServerListProvider(Path.Combine(Application.Path, "files", ".support", "servers.bin")), WebAPIBaseAddress = Settings.Current.Steam.WebAPIUrl, CellID = LocalConfig.CellID, ProtocolTypes = ProtocolTypes.Tcp }; Client = new SteamClient(Configuration); User = Client.GetHandler <SteamUser>(); Apps = Client.GetHandler <SteamApps>(); Friends = Client.GetHandler <SteamFriends>(); UserStats = Client.GetHandler <SteamUserStats>(); CallbackManager = new CallbackManager(Client); Client.AddHandler(new ReadMachineAuth()); new Connection(CallbackManager); new PICSProductInfo(CallbackManager); new PICSTokens(CallbackManager); new LicenseList(CallbackManager); new WebAuth(CallbackManager); new FreeLicense(CallbackManager); if (!Settings.IsFullRun) { new AccountInfo(CallbackManager); new ClanState(CallbackManager); new ChatMemberInfo(CallbackManager); new GameCoordinator(Client, CallbackManager); new Watchdog(); } PICSChanges = new PICSChanges(CallbackManager); DepotProcessor = new DepotProcessor(Client, CallbackManager); IsRunning = true; }