Skip to content

Instantly share code, notes, and snippets.

Avatar

Justin Yoo justinyoo

View GitHub Profile
@justinyoo
justinyoo / 01-feed-reader.cs
Last active Jul 16, 2020
Creating Custom Connector from Azure Functions with Swagger
View 01-feed-reader.cs
namespace FeedReaders.FunctionApp
{
public static class FeedReaderHttpTrigger
{
[FunctionName(nameof(FeedReaderHttpTrigger.GetFeedItemsAsync))]
public static async Task<IActionResult> GetFeedItemsAsync(
[HttpTrigger(AuthorizationLevel.Function, "post", Route = "feeds/items")] HttpRequest req,
ILogger log)
{
...
@justinyoo
justinyoo / 01-azfuncopenapi.ps1
Created Jul 7, 2020
Generating Open API Document for Azure Functions in Command-Line
View 01-azfuncopenapi.ps1
# PowerShell Console
azfuncopenapi `
--project <PROJECT_PATH> `
--configuration Debug `
--target netcoreapp2.1 `
--version v2 `
--format json `
--output output `
--console false
@justinyoo
justinyoo / 01-feed-reader.cs
Last active Jul 2, 2020
5 Ways Injecting Multiple Instances of Same Interface on ASP.NET Core
View 01-feed-reader.cs
public interface IFeedReader
{
string Name { get; }
string GetSingleFeedTitle();
}
public class BlogFeedReader : IFeedReader
{
public BlogFeedReader()
{
@justinyoo
justinyoo / 01-api-list.txt
Last active Jun 24, 2020
Building GraphQL Server on ASP.NET Core
View 01-api-list.txt
GET /posts
GET /posts/{postId}
GET /authors
GET /authors/{authorId}
GET /tags
...
@justinyoo
justinyoo / 01-dotnet-run.sh
Last active Jun 17, 2020
Hosting Blazor Web Assembly App on Azure Static Web App
View 01-dotnet-run.sh
dotnet run -p BlazorNpmSample
@justinyoo
justinyoo / 01-dotnet-new.sh
Created Jun 8, 2020
Adding React UI Components, by node.js/npm packages, to Blazor Web Assembly Application
View 01-dotnet-new.sh
dotnet new blazorwasm -n BlazorNpmSample
@justinyoo
justinyoo / 01-dotnet-new.sh
Created May 31, 2020
Adding React UI Components to Blazor Web Assembly Application
View 01-dotnet-new.sh
dotnet new blazorwasm -n BlazorJsSample
@justinyoo
justinyoo / 01-pr-flow-1.yaml
Last active May 6, 2020
Publishing JAM Stack Web Apps with GitOps and GitHub Actions
View 01-pr-flow-1.yaml
name: Pull Request
on:
pull_request:
branches:
- dev
types:
- opened
jobs:
@justinyoo
justinyoo / 01-kv-reference-1.txt
Created Apr 30, 2020
3 Ways Referencing Azure Key Vault from Azure Functions
View 01-kv-reference-1.txt
@Microsoft.KeyVault(SecretUri=https://<key-vault-name>.vault.azure.net/secrets/<secret-name>/<secret-version>)
@justinyoo
justinyoo / 01-create-bin.cs
Created Apr 22, 2020
Building RequestBin with Durable Functions
View 01-create-bin.cs
[FunctionName(nameof(CreateBin))]
public async Task<IActionResult> CreateBin(
[HttpTrigger(AuthorizationLevel.Anonymous, "post", Route="bins")] HttpRequest req,
[DurableClient] IDurableClient client)
{
...
}
You can’t perform that action at this time.