Skip to content

Instantly share code, notes, and snippets.

@tebeco
tebeco / ssl.cs
Created January 19, 2020 09:13 — forked from ststeiger/ssl.cs
.NET Core SSL
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Logging;
@tebeco
tebeco / introrx.md
Created February 17, 2018 08:02 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
@tebeco
tebeco / gist:d41a95bc75d8b87299abb80bc4eeb0f7
Created August 2, 2017 21:18 — forked from raffaeler/gist:f8cf7c87ff9cd8e48c2b608b95b7cff4
Draft for Assembly Loading in a mixed netstandard/netcore environment
// Read additional notes at the end of the file
using System;
using System.Linq;
using System.Collections.Generic;
using System.Text;
using System.Reflection.Metadata;
using System.Diagnostics;
#if NET462
#endif
@tebeco
tebeco / pipes.cs
Created July 17, 2017 13:19 — forked from davidfowl/pipes.cs
Pipe sample
using System;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Server.Kestrel.Internal.System.IO.Pipelines;
namespace WebApplication19
{
public class Program
{
public static async Task Main(string[] args)
@tebeco
tebeco / HostedService.cs
Created July 17, 2017 13:19 — forked from davidfowl/HostedService.cs
A base class that allows writing a long running background task in ASP.NET Core 2.0
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.Extensions.Hosting;
namespace WebApplication24
{
public abstract class HostedService : IHostedService