Table of Contents

Class ServiceCollectionExtensions

Namespace
CounterStrikeSharp.API
Assembly
CounterStrikeSharp.API.dll
public static class ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensions

Methods

DecorateSingleton<TService, TDecoratedService>(IServiceCollection)

Decorates a given interface with a decorator class, keeping a local copy for singleton access.

public static IServiceCollection DecorateSingleton<TService, TDecoratedService>(this IServiceCollection services) where TService : class where TDecoratedService : class, TService

Parameters

services IServiceCollection

Returns

IServiceCollection

Type Parameters

TService
TDecoratedService