Skip to content

Instantly share code, notes, and snippets.

View ChristianWeyer's full-sized avatar

Christian Weyer ChristianWeyer

View GitHub Profile
@ChristianWeyer
ChristianWeyer / MimeTypeLookup.cs
Last active July 13, 2023 09:17
.NET MIME type lookup - 1200 well known MIME types in a C# helper class - thx to https://github.com/PawelGerr !
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
/*
MIT License
Copyright (c) 2014 Christian Weyer
@ChristianWeyer
ChristianWeyer / webapi_signalr_integration.cs
Created October 1, 2012 18:18
Simple ASP.NET Web API & SignalR integration.
namespace WebApi.SignalR
{
/// <summary>
/// Simple Web API & SignalR integration.
/// No access to full hub, e.g. HubCallerContext.
/// </summary>
/// <typeparam name="THub"></typeparam>
public abstract class HubApiController<THub> : ApiController
where THub : IHub
{