AgentApplicationBuilder.WithAuthorization Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Configures user authorization for the application.
public Microsoft.Agents.Builder.App.AgentApplicationBuilder WithAuthorization(Microsoft.Agents.Builder.IChannelAdapter channelAdapter, Microsoft.Agents.Builder.App.UserAuth.UserAuthorizationOptions authorizationOptions);
member this.WithAuthorization : Microsoft.Agents.Builder.IChannelAdapter * Microsoft.Agents.Builder.App.UserAuth.UserAuthorizationOptions -> Microsoft.Agents.Builder.App.AgentApplicationBuilder
Public Function WithAuthorization (channelAdapter As IChannelAdapter, authorizationOptions As UserAuthorizationOptions) As AgentApplicationBuilder
Parameters
- channelAdapter
- IChannelAdapter
- authorizationOptions
- UserAuthorizationOptions
The options for user authorization.
Returns
The ApplicationBuilder instance.