Skip to content

Instantly share code, notes, and snippets.

View unaizorrilla's full-sized avatar
🏠
Working from home

Unai Zorrilla unaizorrilla

🏠
Working from home
View GitHub Profile
using HealthChecks.UI.Client;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
var builder = WebApplication.CreateBuilder(args);
// Add services to the container.
builder.Services.AddRazorPages();
builder.Services.AddHealthChecks()
using HealthChecks.UI.Client;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Diagnostics.HealthChecks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
namespace SampleTable
{
@unaizorrilla
unaizorrilla / operator.cs
Last active April 13, 2020 19:16
Operator with hosted service and channels
using HealthCheckOperator.Controller;
using HealthCheckOperator.Crd;
using HealthCheckOperator.Diagnostics;
using k8s;
using Microsoft.Extensions.Hosting;
using System;
using System.Threading;
using System.Threading.Channels;
using System.Threading.Tasks;
@unaizorrilla
unaizorrilla / sample.cs
Created September 12, 2017 14:30
EF Core DotNet tool Migrations and Seed
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using System;
using System.Linq;
namespace EFSeedDemo
{