Summary
Registers the specified context type.
Only the last registration will be used.
Syntax
public static IServiceCollection UseContext<TContext>(this IServiceCollection services)
where TContext : class, IFrostingContext
Type Parameters
Name |
Description |
TContext |
The type of the context to register. |
Parameters
Name |
Type |
Description |
services |
IServiceCollection |
The service collection. |
Return Value
Type |
Description |
IServiceCollection |
The same IServiceCollection instance so that multiple calls can be chained. |