This repository was archived by the owner on Jun 30, 2022. It is now read-only.
File tree Expand file tree Collapse file tree
enterprise-assistant/VirtualAssistantSample/Adapters
hospitality-assistant/VirtualAssistantSample/Adapters
virtual-assistant/VirtualAssistantSample/Adapters
skill/SkillSample/Adapters
templates/typescript/samples
sample-assistant/src/adapters
sample-skill/src/adapters Expand file tree Collapse file tree Original file line number Diff line number Diff line change 55using System . Threading ;
66using System . Threading . Tasks ;
77using Microsoft . Bot . Builder ;
8- using Microsoft . Bot . Builder . Azure ;
8+ using Microsoft . Bot . Builder . Azure . Blobs ;
99using Microsoft . Bot . Builder . Integration . ApplicationInsights . Core ;
1010using Microsoft . Bot . Builder . Integration . AspNet . Core ;
1111using 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 ( ) ) ;
Original file line number Diff line number Diff line change 55using System . Threading ;
66using System . Threading . Tasks ;
77using Microsoft . Bot . Builder ;
8- using Microsoft . Bot . Builder . Azure ;
8+ using Microsoft . Bot . Builder . Azure . Blobs ;
99using Microsoft . Bot . Builder . Integration . ApplicationInsights . Core ;
1010using Microsoft . Bot . Builder . Integration . AspNet . Core ;
1111using 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 ( ) ) ;
Original file line number Diff line number Diff line change 55using System . Threading ;
66using System . Threading . Tasks ;
77using Microsoft . Bot . Builder ;
8- using Microsoft . Bot . Builder . Azure ;
8+ using Microsoft . Bot . Builder . Azure . Blobs ;
99using Microsoft . Bot . Builder . Integration . ApplicationInsights . Core ;
1010using Microsoft . Bot . Builder . Integration . AspNet . Core ;
1111using 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 ( ) ) ;
Original file line number Diff line number Diff line change 44using System ;
55using System . Threading . Tasks ;
66using Microsoft . Bot . Builder ;
7- using Microsoft . Bot . Builder . Azure ;
7+ using Microsoft . Bot . Builder . Azure . Blobs ;
88using Microsoft . Bot . Builder . Integration . ApplicationInsights . Core ;
99using Microsoft . Bot . Builder . Integration . AspNet . Core ;
1010using 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" ) ) ;
Original file line number Diff line number Diff 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 ' ;
1919import {
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
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ import {
2121 ActivityEx } from 'bot-solutions' ;
2222import { IBotSettings } from '../services/botSettings' ;
2323import { TurnContextEx } from '../extensions/turnContextEx' ;
24- import { AzureBlobTranscriptStore , BlobStorageSettings } from 'botbuilder-azure' ;
24+ import { BlobsTranscriptStore } from 'botbuilder-azure-blobs ' ;
2525import { TelemetryInitializerMiddleware } from 'botbuilder-applicationinsights' ;
2626
2727export 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' ) ) ;
You can’t perform that action at this time.
0 commit comments