Replies: 1 comment
-
Hi, in Startup.cs > public void ConfigureServices(IServiceCollection services)
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there an example for programming Middleware with Version 2.x?
I was picking something fruit but it doesn't work:
public class AdapterWithErrorHandler : CloudAdapter
{
public AdapterWithErrorHandler(IConfiguration configuration, IHttpClientFactory httpClientFactory, ILogger logger, QnAMiddleware qnAMiddleware, ConversationState conversationState = default)
: base(configuration, httpClientFactory, logger)
{
if (qnAMiddleware == null)
{
throw new NullReferenceException(nameof(qnAMiddleware));
}
public class QnAMiddleware : IMiddleware
{
public QnAMiddleware(UserState userState)
{
thank you
Beta Was this translation helpful? Give feedback.
All reactions