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 Azure; | |
using Azure.Core.Serialization; | |
using Azure.Search.Documents; | |
using Azure.Search.Documents.Indexes; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Serialization; | |
using System.Text.Json; | |
namespace SerializerCustomizeSamples | |
{ |
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
// こんな定義があるとして | |
// TODO: Cognitive Search の Uri をセット | |
private static readonly Uri SearchEndpoint = new Uri(""); | |
// TODO: ADMIN の API キーをセット | |
private const string AdminApiKey = ""; | |
// TODO: インデックス名をセット | |
private const string IndexName = ""; | |
// using statement | |
using Azure; |
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
// こんな定義があるとして | |
// TODO: Cognitive Search の Uri をセット | |
private static readonly Uri SearchEndpoint = new Uri(""); | |
// TODO: ADMIN の API キーをセット | |
private const string AdminApiKey = ""; | |
// TODO: インデックス名をセット | |
private const string IndexName = ""; | |
// using statement |
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.DeepDev; | |
namespace OpenAISdkSamples; | |
public class TokenizerSample | |
{ | |
private const string ImStart = "<|im_start|>"; | |
private const string ImEnd = "<|im_end|>"; | |
private static readonly Dictionary<string, int> SpecialTokens = new() |
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
name: matrix1 | |
stages: | |
- stage: matrix_demo | |
jobs: | |
- job: job_a | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- powershell: echo 'Hello matrix' |
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
name: matrix1 | |
stages: | |
- stage: matrix_demo | |
jobs: | |
- job: job_a | |
pool: | |
vmImage: ubuntu-latest | |
steps: | |
- powershell: | |
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.Http; | |
using Microsoft.Azure.Functions.Extensions.DependencyInjection; | |
using Microsoft.Extensions.DependencyInjection; | |
[assembly: FunctionsStartup(typeof(DependencyInjectionWithHttpContextSample.Startup))] | |
namespace DependencyInjectionWithHttpContextSample; | |
public class Startup : FunctionsStartup | |
{ |
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
name: ASP.NET MVC (.NET Framework 4.8) to App Service | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
jobs: |
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
name: Web API and APIM APIs CI/CD | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
workflow_dispatch: | |
permissions: |
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.OpenApi.Models; | |
var builder = WebApplication.CreateBuilder(args); | |
// Add services to the container. | |
builder.Services.AddControllers(); | |
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle | |
builder.Services.AddEndpointsApiExplorer(); | |
// バージョンの指定 |
NewerOlder