Class IServiceCollectionsExtensions
Extension of IServiceCollection to configure the UnrealHookClient.
Inherited Members
Namespace: Microsoft.XboxStudios.UnrealToolkit.Bifrost.Proto.HookClient
Assembly: UnrealToolkit.Bifrost.Proto.HookClient.dll
Syntax
public static class IServiceCollectionsExtensions
Methods
View SourceAddUnrealHookClient(IServiceCollection, IPEndPoint, TimeSpan?, TimeSpan?)
Configures the UnrealHookClient with Bifrost via Protobuf protocol.
Declaration
public static IServiceCollection AddUnrealHookClient(this IServiceCollection services, IPEndPoint endPoint, TimeSpan? defaultConnectionTimeoutSeconds = null, TimeSpan? defaultInvokeHookTimeoutSeconds = null)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection to configure. |
IPEndPoint | endPoint | The endpoint of the host to connect to. |
TimeSpan? | defaultConnectionTimeoutSeconds | The default timeout to use when attempting a connection to a game instance. Default set to 30 seconds. |
TimeSpan? | defaultInvokeHookTimeoutSeconds | The default timeout to use when invoking a hook call on the game instance. Default set to 30 seconds. |
Returns
Type | Description |
---|---|
IServiceCollection | The configured IServiceCollection. |