public Launcher(ISteam?steam, IUniqueIdCache uniqueIdCache, ISettings settings) { this.steam = steam; this.uniqueIdCache = uniqueIdCache; this.settings = settings; ServicePointManager.Expect100Continue = false; #if NET6_0_OR_GREATER var sslOptions = new SslClientAuthenticationOptions() { CipherSuitesPolicy = new CipherSuitesPolicy(new[] { TlsCipherSuite.TLS_DHE_RSA_WITH_AES_256_GCM_SHA384 }) }; var handler = new SocketsHttpHandler { UseCookies = false, SslOptions = sslOptions, }; #else var handler = new HttpClientHandler { UseCookies = false, }; #endif this.client = new HttpClient(handler); }
public Launcher(byte[] steamTicket, IUniqueIdCache uniqueIdCache, ISettings settings) : this(steam : null, uniqueIdCache, settings) { this.steamTicket = steamTicket; }