Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Seemann ploeh

View GitHub Profile
@kolektiv
kolektiv / gist:3d28ae35657275ecc29c
Last active Oct 30, 2017
A content negotiated resource in Freya
View gist:3d28ae35657275ecc29c
open System
open System.Text
open Freya.Core
open Freya.Machine
open Freya.Machine.Extensions.Http
open Freya.Machine.Router
open Freya.Router
open Freya.Types.Http
open Microsoft.Owin.Hosting
@kkozmic
kkozmic / gist:4034987
Created Nov 7, 2012
Windsor automatic dependencies from appSettings section of app.config
View gist:4034987
public class AppConfigDependencies : IContributeComponentModelConstruction
{
private readonly ParameterModelCollection parameters;
public AppConfigDependencies(NameValueCollection appSettings)
{
parameters = new ParameterModelCollection();
foreach (var key in appSettings.AllKeys)
{
parameters.Add(key, appSettings[key]);
You can’t perform that action at this time.