ConventionHostBuilderExtensions.

Get<T>(IServiceProviderDictionary, string) Method

Summary

Get a value by key from the context

Syntax

public static T Get<T>(this IServiceProviderDictionary serviceProviderDictionary, string key)

Attributes

Type Description
NotNullAttribute

Type Parameters

Name Description
T

Parameters

Name Type Description
serviceProviderDictionary IServiceProviderDictionary The properties
key string The key where the value is saved

Return Value

Type Description
T T.