Class EOS
Epic Online Services (EOS) Protocol
public class EOS : ProtocolBase
- Inheritance
-
EOS
- Inherited Members
Constructors
EOS(string, int, string, string, int)
Initializes a new instance of the EOS class.
public EOS(string host, int port, string deploymentId, string accessToken, int timeout = 5000)
Parameters
host
stringThe host name of the server.
port
intThe port number of the server.
deploymentId
stringThe deployment ID for the application.
accessToken
stringThe access token for the application.
timeout
intThe timeout value for the connection, in milliseconds. Default is 5000.
Exceptions
- ArgumentException
Thrown when either deploymentId or accessToken is null.
Properties
FullName
Gets the full name of the protocol.
public override string FullName { get; }
Property Value
Methods
GetAccessTokenAsync(string, string, string, string, string, string)
Asynchronously gets an access token.
public static Task<string> GetAccessTokenAsync(string clientId, string clientSecret, string deploymentId, string grantType, string externalAuthType, string externalAuthToken)
Parameters
clientId
stringclientSecret
stringdeploymentId
stringgrantType
stringexternalAuthType
stringexternalAuthToken
string
Returns
- Task<string>
A task that represents the asynchronous operation. The task result contains the access token.
GetExternalAuthTokenAsync(string, string, string)
Asynchronously retrieves an external authentication token.
public static Task<string> GetExternalAuthTokenAsync(string clientId, string clientSecret, string externalAuthType)
Parameters
clientId
stringThe client ID.
clientSecret
stringThe client secret.
externalAuthType
stringThe type of external authentication.
Returns
- Task<string>
A task that represents the asynchronous operation. The task result contains the access token.
Exceptions
- ArgumentException
Thrown when either clientId or clientSecret is null.
- NotImplementedException
Thrown when the provided externalAuthType hasn't been implemented yet.
GetInfo()
Retrieves the information about the game server.
public Task<Dictionary<string, JsonElement>> GetInfo()
Returns
- Task<Dictionary<string, JsonElement>>
A task that represents the asynchronous operation. The task result contains a dictionary of the server information.
Exceptions
- ServerNotFoundException
Thrown when the server is not found.
- AuthenticationException
Thrown when there is a failure in getting the access token.
GetMatchmakingAsync(string, string)
Asynchronously retrieves matchmaking data without any filter parameters.
public static Task<Matchmaking> GetMatchmakingAsync(string deploymentId, string accessToken)
Parameters
Returns
- Task<Matchmaking>
A task that represents the asynchronous operation. The task result contains the matchmaking data.
GetMatchmakingAsync(string, string, Dictionary<string, object>)
Asynchronously retrieves matchmaking data.
public static Task<Matchmaking> GetMatchmakingAsync(string deploymentId, string accessToken, Dictionary<string, object> filter)
Parameters
deploymentId
stringThe deployment ID.
accessToken
stringThe access token.
filter
Dictionary<string, object>The filter parameters for the matchmaking request.
Returns
- Task<Matchmaking>
A task that represents the asynchronous operation. The task result contains the matchmaking data.