This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In your dialog | |
Activity message = result as Activity; | |
//Create scope with respect to activity | |
using (var scope = DialogModule.BeginLifetimeScope(Conversation.Container, message)) | |
{ | |
//Resolve scope for IBotDataStore<BotData> | |
IBotDataStore<BotData> stateStore = scope.Resolve<IBotDataStore<BotData>>(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//In Global.asax.cs | |
builder.RegisterModule(new AzureModule(Assembly.GetExecutingAssembly())); | |
var store = new TableBotDataStore(ConfigurationManager.ConnectionStrings["StorageConnectionString"].ConnectionString); | |
builder.Register(c => store) | |
.Keyed<IBotDataStore<BotData>>(AzureModule.Key_DataStore) | |
.AsSelf() | |
.SingleInstance(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git add . | |
git commit -m "added travis.yml" | |
git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#use node_js | |
language: node_js | |
#define node js version to use | |
node_js: | |
- "7" | |
#choose branch on commit of which this script should excecute | |
branches: | |
only: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"hosting": { | |
"public": "_site", | |
"rewrites": [ | |
{ | |
"source": "**", | |
"destination": "/index.html" | |
} | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
firebase login |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install -g firebase-tools |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git init | |
git add . | |
git commit -m "First commit" | |
git remote add origin {remote_repository_url} | |
git remote -v | |
git push origin master |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choco install ruby -y | |
gem install bundler | |
gem install jekyll |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Headless communication to dynamics CRM using application user. | |
/// More information at : http://www.wrapcode.com/server-authentication-dynamics-crm/ | |
/// This is just a sample code, there are way better ways to achieve the same. Did not want to spend much time on code snippet. | |
/// </summary> | |
public static async Task HeadlessAuthenticationPOC() | |
{ | |
var clientCreds = new ClientCredential("{AZURE_AD_APP_ID}", "{AZURE_AD_APP_SECRET}"); | |
AuthenticationResult authResult = null; | |