Show / Hide Table of Contents

Class IServiceCollectionExtensions

Extensions for IServiceCollection to add a connection section that uses Bifrost.

Inheritance
object
IServiceCollectionExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Phoenix.Commander.Bifrost.ConnectionWidget
Assembly: Phoenix.Commander.Bifrost.ConnectionWidget.dll
Syntax
public static class IServiceCollectionExtensions

Methods

View Source

AddConnectionSectionBifrost<TClientManagerAdapterConfig, TClient, TMessage>(IServiceCollection, Action<BifrostBuilder>)

Adds a connection section that uses Bifrost.

Declaration
public static IServiceCollection AddConnectionSectionBifrost<TClientManagerAdapterConfig, TClient, TMessage>(this IServiceCollection services, Action<BifrostBuilder> bifrostConfigurator) where TClientManagerAdapterConfig : class, IPhoenixClientManagerAdapterConfig<BifrostOptions> where TClient : class, IGameConnect, IEquatable<TClient?> where TMessage : class
Parameters
Type Name Description
IServiceCollection services

The service collection to add the connection section to.

Action<BifrostBuilder> bifrostConfigurator

Used to configure a serializer and any other options.

Returns
Type Description
IServiceCollection

The configured service collection.

Type Parameters
Name Description
TClientManagerAdapterConfig

The client manager adapter config to use.

TClient

The client that the client manager uses.

TMessage

The type of the message the client uses to communicate with Microsoft.XboxStudios.Bifrost.Serializer.ISerializer<TMessage>.

  • View Source
In this article
Back to top Generated by DocFX