Esempio n. 1
0
 /// <summary>
 /// Load a list of servers from the Content Server Directory Service.
 /// </summary>
 /// <param name="configuration">Configuration Object</param>
 /// <param name="cellId">Preferred steam cell id</param>
 /// <param name="maxNumServers">Max number of servers to return.</param>
 /// <param name="cancellationToken">Cancellation Token</param>
 /// <returns>A <see cref="System.Threading.Tasks.Task"/> with the Result set to an enumerable list of <see cref="CDNClient.Server"/>s.</returns>
 public static Task <IReadOnlyCollection <CDNClient.Server> > LoadAsync(SteamConfiguration configuration, int cellId, int maxNumServers, CancellationToken cancellationToken)
 => LoadCoreAsync(configuration, cellId, maxNumServers, cancellationToken);
Esempio n. 2
0
 /// <summary>
 /// Load a list of servers from the Steam Directory.
 /// </summary>
 /// <param name="configuration">Configuration Object</param>
 /// <returns>A <see cref="System.Threading.Tasks.Task"/> with the Result set to an enumerable list of <see cref="ServerRecord"/>s.</returns>
 public static Task <IReadOnlyCollection <ServerRecord> > LoadAsync(SteamConfiguration configuration)
 {
     return(LoadAsync(configuration, CancellationToken.None));
 }
Esempio n. 3
0
 /// <summary>
 /// Load a list of servers from the Content Server Directory Service.
 /// </summary>
 /// <param name="configuration">Configuration Object</param>
 /// <param name="cancellationToken">Cancellation Token</param>
 /// <returns>A <see cref="System.Threading.Tasks.Task"/> with the Result set to an enumerable list of <see cref="CDNClient.Server"/>s.</returns>
 public static Task <IReadOnlyCollection <CDNClient.Server> > LoadAsync(SteamConfiguration configuration, CancellationToken cancellationToken)
 => LoadCoreAsync(configuration, null, null, cancellationToken);
Esempio n. 4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SteamClient"/> class with a specific configuration.
 /// </summary>
 /// <param name="configuration">The configuration to use for this client.</param>
 /// <exception cref="ArgumentNullException">The configuration object is <c>null</c></exception>
 public SteamClient(SteamConfiguration configuration)
     : this(configuration, Guid.NewGuid().ToString("N"))
 {
 }
Esempio n. 5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SteamClient"/> class a specific identifier.
 /// </summary>
 /// <param name="identifier">A specific identifier to be used to uniquely identify this instance.</param>
 public SteamClient(string identifier)
     : this(SteamConfiguration.CreateDefault(), identifier)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SteamClient"/> class with the default configuration.
 /// </summary>
 public SteamClient()
     : this(SteamConfiguration.CreateDefault())
 {
 }
Esempio n. 7
0
 /// <summary>
 /// Load a list of servers from the Content Server Directory Service.
 /// </summary>
 /// <param name="configuration">Configuration Object</param>
 /// <returns>A <see cref="System.Threading.Tasks.Task"/> with the Result set to an enumerable list of <see cref="CDN.Server"/>s.</returns>
 public static Task <IReadOnlyCollection <CDN.Server> > LoadAsync(SteamConfiguration configuration)
 => LoadCoreAsync(configuration, null, null, CancellationToken.None);
Esempio n. 8
0
 /// <summary>
 /// Load a list of servers from the Steam Directory.
 /// </summary>
 /// <param name="configuration">Configuration Object</param>
 /// <param name="maxNumServers">Max number of servers to return. The API will typically return this number per server type (socket and websocket).</param>
 /// <param name="cancellationToken">Cancellation Token</param>
 /// <returns>A <see cref="System.Threading.Tasks.Task"/> with the Result set to an enumerable list of <see cref="ServerRecord"/>s.</returns>
 public static Task <IReadOnlyCollection <ServerRecord> > LoadAsync(SteamConfiguration configuration, int maxNumServers, CancellationToken cancellationToken)
 => LoadCoreAsync(configuration, maxNumServers, cancellationToken);