Class OAuthServiceCollectionExtensions
Inheritance
System.Object
OAuthServiceCollectionExtensions
Namespace: Steeltoe.Connector.OAuth
Assembly: Steeltoe.Connector.ConnectorCore.dll
Syntax
public static class OAuthServiceCollectionExtensions : object
Methods
| Edit this page View SourceAddOAuthServiceOptions(IServiceCollection, IConfiguration)
Adds OAuthServiceOptions to Service Collection
Declaration
public static IServiceCollection AddOAuthServiceOptions(this IServiceCollection services, IConfiguration config)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Your Service Collection |
IConfiguration | config | Application Configuration |
Returns
Type | Description |
---|---|
IServiceCollection | IServiceCollection for chaining |
AddOAuthServiceOptions(IServiceCollection, IConfiguration, String)
Adds OAuthServiceOptions to Service Collection
Declaration
public static IServiceCollection AddOAuthServiceOptions(this IServiceCollection services, IConfiguration config, string serviceName)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Your Service Collection |
IConfiguration | config | Application Configuration |
System.String | serviceName | Cloud Foundry service name binding |
Returns
Type | Description |
---|---|
IServiceCollection | IServiceCollection for chaining |