Table of Contents

Class ServiceCollectionExtensions

Namespace
LiveKit
Assembly
LiveKit.AspNetCore.ServerSdk.dll

Extension methods for configuring LiveKit services in an IServiceCollection.

Registers LiveKit Room, Egress, Ingress, SIP, and other services for ASP.NET Core dependency injection. See LiveKit Documentation for integration details.

public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions
Inherited Members

Methods

AddLiveKit(IServiceCollection, Action<LiveKitOptions>)

Adds LiveKit services to the specified IServiceCollection.

Configures HTTP clients for all LiveKit services including Room, Egress, Ingress, SIP, Phone Number, Agent Dispatch, and Cloud Agent services.

public static IServiceCollection AddLiveKit(this IServiceCollection services, Action<LiveKitOptions> configure)

Parameters

services IServiceCollection

The service collection to add services to.

configure Action<LiveKitOptions>

An action to configure LiveKit options.

Returns

IServiceCollection

The service collection for chaining.