VRChatServiceCollectionExtensions Class

Namespace: VRChat.API.Extensions.Hosting
Inherited: System.Object

Extensions against IServiceCollection for fluent addition of IVRChat clients to .NET applications.

Methods

  1. AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section)
  2. AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string clientName, Microsoft.Extensions.Configuration.IConfigurationSection section)
  3. AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action<VRChat.API.Client.VRChatClientBuilder> builder)
  4. AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string clientName, System.Action<VRChat.API.Client.VRChatClientBuilder> builder)

Methods


public AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfigurationSection section)

Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection
services The IServiceCollection to add this IVRChat to.
Microsoft.Extensions.Configuration.IConfigurationSection
section A configuration section used to configure the IVRChat with.
Registers an IVRChat to the service collection as the default IVRChat, using an IConfigurationSection to configure.

public AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string clientName, Microsoft.Extensions.Configuration.IConfigurationSection section)

Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection
services The IServiceCollection to add this IVRChat to.
string
clientName The name used to refer to this IVRChat with.
Microsoft.Extensions.Configuration.IConfigurationSection
section A configuration section used to configure the IVRChat with.
Registers a named IVRChat to the service collection, using an IConfigurationSection to configure.
Note, you will need to use IVRChatClientFactory to consume named IVRChat clients.

public AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, System.Action builder)

Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection
services The IServiceCollection to add this IVRChat to.
System.Action<VRChat.API.Client.VRChatClientBuilder>
builder A configuration action to configure the IVRChat with.
Registers an IVRChat to the service collection as the default IVRChat.

public AddVRChat(Microsoft.Extensions.DependencyInjection.IServiceCollection services, string clientName, System.Action builder)

Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection
services The IServiceCollection to add this IVRChat to.
string
clientName The name used to refer to this IVRChat with.
System.Action<VRChat.API.Client.VRChatClientBuilder>
builder A configuration action to configure the IVRChat with.
Registers a named IVRChat to the service collection.
Note, you will need to use IVRChatClientFactory to consume named IVRChat clients.