IChannelAdapter.Use(IMiddleware) 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.
Adds middleware to the adapter's pipeline.
public Microsoft.Agents.Builder.IChannelAdapter Use(Microsoft.Agents.Builder.IMiddleware middleware);
abstract member Use : Microsoft.Agents.Builder.IMiddleware -> Microsoft.Agents.Builder.IChannelAdapter
Public Function Use (middleware As IMiddleware) As IChannelAdapter
Parameters
- middleware
- IMiddleware
The middleware to add.
Returns
The updated IChannelAdapter object.
Remarks
Middleware is added to the adapter at initialization time. For each turn, the adapter calls middleware in the order in which you added it.