Skip to content

Commit

Permalink
fix: Replace Deprecated CosmosDB Interface in BotProject (#2307)
Browse files Browse the repository at this point in the history
* add cosmos db container template

* replace deprecated interface

Co-authored-by: Qi Kang <qika@microsoft.com>
Co-authored-by: Chris Whitten <christopher.whitten@microsoft.com>
  • Loading branch information
3 people authored Mar 20, 2020
1 parent cbb5b4a commit 7128c09
Show file tree
Hide file tree
Showing 4 changed files with 360 additions and 307 deletions.
4 changes: 2 additions & 2 deletions BotProject/Templates/CSharp/BotSettings.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using Microsoft.ApplicationInsights.Extensibility;
Expand All @@ -14,7 +14,7 @@ public class BotSettings

public string MicrosoftAppPassword { get; set; }

public CosmosDbStorageOptions CosmosDb { get; set; }
public CosmosDbPartitionedStorageOptions CosmosDb { get; set; }

public TelemetryConfiguration AppInsights { get; set; }

Expand Down
3 changes: 1 addition & 2 deletions BotProject/Templates/CSharp/ComposerBot.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Threading;
Expand All @@ -20,7 +20,6 @@ public class ComposerBot : ActivityHandler
private DialogManager dialogManager;
private readonly ConversationState conversationState;
private readonly IStatePropertyAccessor<DialogState> dialogState;
private readonly ISourceMap sourceMap;
private readonly string rootDialogFile;

public ComposerBot(ConversationState conversationState, UserState userState, ResourceExplorer resourceExplorer, BotFrameworkClient skillClient, SkillConversationIdFactoryBase conversationIdFactory)
Expand Down
Loading

0 comments on commit 7128c09

Please sign in to comment.