MockHttpRequestMiddleware Class
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.
Middleware to mock http requests with an adapter.
public class MockHttpRequestMiddleware : Microsoft.Bot.Builder.IMiddleware
type MockHttpRequestMiddleware = class
interface IMiddleware
Public Class MockHttpRequestMiddleware
Implements IMiddleware
- Inheritance
-
MockHttpRequestMiddleware
- Implements
Constructors
MockHttpRequestMiddleware(List<HttpRequestMock>) |
Initializes a new instance of the MockHttpRequestMiddleware class. |
Methods
OnTurnAsync(ITurnContext, NextDelegate, CancellationToken) |
When implemented in middleware, processes an incoming activity. |
SetFallback(Func<HttpRequestMessage,HttpResponseMessage>) |
Set fallback. |