Skip to content

Commit

Permalink
Move BotIdentityKey to BotAdapter from BotFrameworkAdapter, makign it…
Browse files Browse the repository at this point in the history
… available to derived adapters

This is part of skills support
Related to #1523
  • Loading branch information
benbrown committed Feb 21, 2020
1 parent d449253 commit b1334e4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions libraries/botbuilder-core/src/botAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import { TurnContext } from './turnContext';
export abstract class BotAdapter {
protected middleware: MiddlewareSet = new MiddlewareSet();
private turnError: (context: TurnContext, error: Error) => Promise<void>;
public readonly BotIdentityKey: Symbol = Symbol('BotIdentity');

/**
* Asynchronously sends a set of outgoing activities to a channel server.
Expand Down
1 change: 0 additions & 1 deletion libraries/botbuilder/src/botFrameworkAdapter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,6 @@ export class BotFrameworkAdapter extends BotAdapter implements IUserTokenProvide
// These keys are public to permit access to the keys from the adapter when it's a being
// from library that does not have access to static properties off of BotFrameworkAdapter.
// E.g. botbuilder-dialogs
public readonly BotIdentityKey: Symbol = Symbol('BotIdentity');
public readonly ConnectorClientKey: Symbol = Symbol('ConnectorClient');

protected readonly credentials: AppCredentials;
Expand Down

0 comments on commit b1334e4

Please sign in to comment.