BotFrameworkConfigurationBuilder.UseMiddleware(IMiddleware) Method (Microsoft.Bot.Builder.Integration.AspNet.WebApi)
















Definition




Overloads







UseMiddleware(IMiddleware)
UseMiddleware(IMiddleware)
UseMiddleware(IMiddleware)

Adds a piece of IMiddleware to the bot’s middleware pipeline.

public Microsoft.Bot.Builder.Integration.AspNet.WebApi.BotFrameworkConfigurationBuilder UseMiddleware (Microsoft.Bot.Builder.IMiddleware middleware);
member this.UseMiddleware : Microsoft.Bot.Builder.IMiddleware -> Microsoft.Bot.Builder.Integration.AspNet.WebApi.BotFrameworkConfigurationBuilder
Public Function UseMiddleware (middleware As IMiddleware) As BotFrameworkConfigurationBuilder

Parameters

Returns

A reference to this instance after the operation has completed.

See Also


UseMiddleware(Func<ITurnContext,Exception,Task>)
UseMiddleware(Func<ITurnContext,Exception,Task>)
UseMiddleware(Func<ITurnContext,Exception,Task>)

Adds an Error Handler the bot.

public Microsoft.Bot.Builder.Integration.AspNet.WebApi.BotFrameworkConfigurationBuilder UseMiddleware (Func<Microsoft.Bot.Builder.ITurnContext,Exception,System.Threading.Tasks.Task> errorHandler);
member this.UseMiddleware : Func<Microsoft.Bot.Builder.ITurnContext, Exception, System.Threading.Tasks.Task> -> Microsoft.Bot.Builder.Integration.AspNet.WebApi.BotFrameworkConfigurationBuilder
Public Function UseMiddleware (errorHandler As Func(Of ITurnContext, Exception, Task)) As BotFrameworkConfigurationBuilder

Parameters

Returns

A reference to this instance after the operation has completed.

See Also

Applies to






source_link
https://www.asp.net