Skip to content
This repository was archived by the owner on Jun 30, 2022. It is now read-only.

Commit 7d35c41

Browse files
committed
Replace AzureBlobTranscriptStore to BlobsTranscriptStore
1 parent 5fe4471 commit 7d35c41

6 files changed

Lines changed: 12 additions & 16 deletions

File tree

samples/csharp/assistants/enterprise-assistant/VirtualAssistantSample/Adapters/DefaultAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using Microsoft.Bot.Builder;
8-
using Microsoft.Bot.Builder.Azure;
8+
using Microsoft.Bot.Builder.Azure.Blobs;
99
using Microsoft.Bot.Builder.Integration.ApplicationInsights.Core;
1010
using Microsoft.Bot.Builder.Integration.AspNet.Core;
1111
using Microsoft.Bot.Builder.Integration.AspNet.Core.Skills;
@@ -62,7 +62,7 @@ public DefaultAdapter(
6262

6363
// Uncomment the following line for local development without Azure Storage
6464
// Use(new TranscriptLoggerMiddleware(new MemoryTranscriptStore()));
65-
Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
65+
Use(new TranscriptLoggerMiddleware(new BlobsTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
6666
Use(new ShowTypingMiddleware());
6767
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
6868
Use(new EventDebuggerMiddleware());

samples/csharp/assistants/hospitality-assistant/VirtualAssistantSample/Adapters/DefaultAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using Microsoft.Bot.Builder;
8-
using Microsoft.Bot.Builder.Azure;
8+
using Microsoft.Bot.Builder.Azure.Blobs;
99
using Microsoft.Bot.Builder.Integration.ApplicationInsights.Core;
1010
using Microsoft.Bot.Builder.Integration.AspNet.Core;
1111
using Microsoft.Bot.Builder.Integration.AspNet.Core.Skills;
@@ -62,7 +62,7 @@ public DefaultAdapter(
6262

6363
// Uncomment the following line for local development without Azure Storage
6464
// Use(new TranscriptLoggerMiddleware(new MemoryTranscriptStore()));
65-
Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
65+
Use(new TranscriptLoggerMiddleware(new BlobsTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
6666
Use(new ShowTypingMiddleware());
6767
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
6868
Use(new EventDebuggerMiddleware());

samples/csharp/assistants/virtual-assistant/VirtualAssistantSample/Adapters/DefaultAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System.Threading;
66
using System.Threading.Tasks;
77
using Microsoft.Bot.Builder;
8-
using Microsoft.Bot.Builder.Azure;
8+
using Microsoft.Bot.Builder.Azure.Blobs;
99
using Microsoft.Bot.Builder.Integration.ApplicationInsights.Core;
1010
using Microsoft.Bot.Builder.Integration.AspNet.Core;
1111
using Microsoft.Bot.Builder.Integration.AspNet.Core.Skills;
@@ -60,7 +60,7 @@ public DefaultAdapter(
6060

6161
// Uncomment the following line for local development without Azure Storage
6262
// Use(new TranscriptLoggerMiddleware(new MemoryTranscriptStore()));
63-
Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
63+
Use(new TranscriptLoggerMiddleware(new BlobsTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
6464
Use(new ShowTypingMiddleware());
6565
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));
6666
Use(new EventDebuggerMiddleware());

samples/csharp/skill/SkillSample/Adapters/DefaultAdapter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using System;
55
using System.Threading.Tasks;
66
using Microsoft.Bot.Builder;
7-
using Microsoft.Bot.Builder.Azure;
7+
using Microsoft.Bot.Builder.Azure.Blobs;
88
using Microsoft.Bot.Builder.Integration.ApplicationInsights.Core;
99
using Microsoft.Bot.Builder.Integration.AspNet.Core;
1010
using Microsoft.Bot.Builder.TraceExtensions;
@@ -48,7 +48,7 @@ public DefaultAdapter(
4848

4949
// Uncomment the following line for local development without Azure Storage
5050
// Use(new TranscriptLoggerMiddleware(new MemoryTranscriptStore()));
51-
Use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
51+
Use(new TranscriptLoggerMiddleware(new BlobsTranscriptStore(settings.BlobStorage.ConnectionString, settings.BlobStorage.Container)));
5252
Use(new TelemetryLoggerMiddleware(telemetryClient, logPersonalInformation: true));
5353
Use(new ShowTypingMiddleware());
5454
Use(new SetLocaleMiddleware(settings.DefaultLocale ?? "en-us"));

templates/typescript/samples/sample-assistant/src/adapters/defaultAdapter.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
TranscriptStore,
1616
TurnContext,
1717
TelemetryException } from 'botbuilder';
18-
import { AzureBlobTranscriptStore } from 'botbuilder-azure';
18+
import { BlobsTranscriptStore } from 'botbuilder-azure-blobs';
1919
import {
2020
EventDebuggerMiddleware,
2121
LocaleTemplateManager,
@@ -67,10 +67,7 @@ export class DefaultAdapter extends BotFrameworkAdapter {
6767
throw new Error('There is no blobStorage value in appsettings file');
6868
}
6969

70-
const transcriptStore: TranscriptStore = new AzureBlobTranscriptStore({
71-
containerName: settings.blobStorage.container,
72-
storageAccountOrConnectionString: settings.blobStorage.connectionString
73-
});
70+
const transcriptStore: TranscriptStore = new BlobsTranscriptStore(settings.blobStorage.connectionString, settings.blobStorage.container);
7471

7572
this.use(telemetryMiddleware);
7673

templates/typescript/samples/sample-skill/src/adapters/defaultAdapter.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import {
2121
ActivityEx } from 'bot-solutions';
2222
import { IBotSettings } from '../services/botSettings';
2323
import { TurnContextEx } from '../extensions/turnContextEx';
24-
import { AzureBlobTranscriptStore, BlobStorageSettings } from 'botbuilder-azure';
24+
import { BlobsTranscriptStore } from 'botbuilder-azure-blobs';
2525
import { TelemetryInitializerMiddleware } from 'botbuilder-applicationinsights';
2626

2727
export class DefaultAdapter extends BotFrameworkAdapter {
@@ -65,8 +65,7 @@ export class DefaultAdapter extends BotFrameworkAdapter {
6565

6666
// Uncomment the following line for local development without Azure Storage
6767
// this.use(new TranscriptLoggerMiddleware(new MemoryTranscriptStore()));
68-
const blobStorageSettings: BlobStorageSettings = { containerName: settings.blobStorage.container, storageAccountOrConnectionString: settings.blobStorage.connectionString};
69-
this.use(new TranscriptLoggerMiddleware(new AzureBlobTranscriptStore(blobStorageSettings)));
68+
this.use(new TranscriptLoggerMiddleware(new BlobsTranscriptStore(settings.blobStorage.connectionString, settings.blobStorage.container)));
7069
this.use(new TelemetryLoggerMiddleware(telemetryClient, true));
7170
this.use(new ShowTypingMiddleware());
7271
this.use(new SetLocaleMiddleware(settings.defaultLocale || 'en-us'));

0 commit comments

Comments
 (0)