Skip to content

Commit

Permalink
Merge pull request microsoft#63 from microsoft/users/tracyboehrer/no-…
Browse files Browse the repository at this point in the history
…null-params-di

params won't DI if not registers (null not handled)
  • Loading branch information
tracyboehrer authored Jan 23, 2025
2 parents 68f6e53 + 0488d19 commit 30f0c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/libraries/Hosting/AspNetCore/CloudAdapter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public CloudAdapter(
IActivityTaskQueue activityTaskQueue,
ILogger<IBotHttpAdapter> logger = null,
bool async = true,
params Core.Interfaces.IMiddleware[] middlewares) : base(channelServiceClientFactory, logger)
Core.Interfaces.IMiddleware[] middlewares = null) : base(channelServiceClientFactory, logger)
{
_activityTaskQueue = activityTaskQueue ?? throw new ArgumentNullException(nameof(activityTaskQueue));
_async = async;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public TeamsSSOAdapter(
IActivityTaskQueue activityTaskQueue,
ILogger<IBotHttpAdapter> logger,
ConversationState conversationState,
params IMiddleware[] middlewares)
IMiddleware[] middlewares = null)
: base(channelServiceClientFactory, activityTaskQueue, logger, middlewares: middlewares)
{
OnTurnError = async (turnContext, exception) =>
Expand Down

0 comments on commit 30f0c94

Please sign in to comment.