This file contains 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
using System.ComponentModel.DataAnnotations; | |
namespace OptionsPatternSamples.Options | |
{ | |
public class AzureAdOptions | |
{ | |
[Required] | |
public string TenantId { get; set; } | |
[Required] |
This file contains 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
using System; | |
namespace SerializerCustomizeSamples | |
{ | |
public class CognitiveSearchOptions | |
{ | |
public Uri SearchEndpointUri => new Uri(SearchEndpoint); | |
public string SearchEndpoint { get; set; } | |
public string AdminApiKey { get; set; } |
This file contains 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
internal class Program | |
{ | |
// TODO: Cognitive Search の Uri をセット | |
private static readonly Uri SearchEndpoint = new Uri(""); | |
// TODO: ADMIN の API キーをセット | |
private const string AdminApiKey = ""; | |
// TODO: インデックス名をセット | |
private const string IndexName = ""; | |
private static async Task Main() |
This file contains 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
using Microsoft.AspNetCore.Authentication.JwtBearer; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using Microsoft.IdentityModel.Tokens; | |
using System.Net; | |
using System.Text; | |
using System.Threading.Tasks; |
This file contains 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
using Microsoft.Azure.WebJobs; | |
using Microsoft.Azure.WebJobs.Host; | |
using Microsoft.WindowsAzure.Storage.Queue; | |
using Newtonsoft.Json; | |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
namespace BinderDemo | |
{ |
This file contains 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
{ | |
"$schema": "../app.schema", | |
"$kind": "Microsoft.AdaptiveDialog", | |
"generator": "common.lg", | |
"triggers": [ | |
{ | |
"$kind": "Microsoft.OnUnknownIntent", | |
"actions": [ | |
{ | |
"$kind": "Microsoft.SendActivity", |
This file contains 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
# Greeting | |
- Hi! | |
- Welcome! | |
- Hey! | |
- 今は ${addHours(utcNow(), 9, "yyyy/MM/dd HH:mm")} だよ |
This file contains 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
<ItemGroup> | |
<Content Include="**/*.dialog"> | |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
</Content> | |
<Content Include="**/*.lg"> | |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> | |
</Content> | |
<Content Update="appsettings.json"> | |
<CopyToOutputDirectory>Always</CopyToOutputDirectory> |
This file contains 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
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Bot.Builder; | |
using Microsoft.Bot.Builder.Integration.AspNet.Core; | |
using Microsoft.Extensions.Configuration; | |
using Microsoft.Extensions.DependencyInjection; | |
using Microsoft.Extensions.Hosting; | |
using EchoBot2.Bots; | |
using Microsoft.Bot.Builder.Dialogs; |
This file contains 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
public class AdapterWithErrorHandler : BotFrameworkHttpAdapter | |
{ | |
public AdapterWithErrorHandler(IConfiguration configuration, | |
IStorage storage, UserState userState, | |
ConversationState conversationState, | |
ILogger<BotFrameworkHttpAdapter> logger) : base(configuration, logger) | |
{ | |
Use(new RegisterClassMiddleware<IConfiguration>(configuration)); | |
this.UseStorage(storage); | |
this.UseBotState(userState); |