RocketHostExtensions.

UseDependencyContext(IRocketHostBuilder, DependencyContext, DiagnosticSource) Method

Summary

Uses the dependency context.

Syntax

public static IRocketHostBuilder UseDependencyContext(this IRocketHostBuilder builder, DependencyContext dependencyContext, DiagnosticSource diagnosticSource = null)

Parameters

Name Type Description
builder IRocketHostBuilder The builder.
dependencyContext DependencyContext The dependency context.
diagnosticSource DiagnosticSource The diagnostic source.

Return Value

Type Description
IRocketHostBuilder IRocketHostBuilder.