This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static Type[] EnforceReferencesFor = { typeof(Simple.Web.JsonNet.JsonMediaTypeHandler) }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using AppFunc = System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task>; | |
app.Use(new Func<AppFunc, AppFunc>(ignoreNextApp => (AppFunc)simpleWeb.Invoke)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace OwinConsoleHost | |
{ | |
internal class Program | |
{ | |
private static void Main(string[] args) | |
{ | |
new Simple.Web.Hosting.Self.OwinSelfHost().Run(); | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[assembly: Microsoft.Owin.OwinStartup(typeof(OwinLibraryHost.Startup))] | |
namespace OwinLibraryHost | |
{ | |
using Simple.Web.OwinSupport; | |
public class Startup : OwinStartupBase | |
{ | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// <copyright file="OwinHttpListener.cs" company="Microsoft Open Technologies, Inc."> | |
// Copyright 2011-2013 Microsoft Open Technologies, Inc. All rights reserved. | |
// | |
// Licensed under the Apache License, Version 2.0 (the "License"); | |
// you may not use this file except in compliance with the License. | |
// You may obtain a copy of the License at | |
// | |
// http://www.apache.org/licenses/LICENSE-2.0 | |
// | |
// Unless required by applicable law or agreed to in writing, software |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
return WebApp.Start( | |
startOptions, | |
app => | |
{ | |
app.UseErrorPage(); | |
app.Use( | |
new Func<AppFunc, AppFunc>( | |
ignoreNextApp => (env => | |
{ | |
var responseHeaders = (IDictionary<string, string[]>)env["owin.ResponseHeaders"]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Application Exception | |
System.UnauthorizedAccessException | |
Access to the path "/Library/Frameworks/Mono.framework/Versions/3.2.0/etc/mono/registry" is denied. | |
Description: HTTP 500.Error processing request. | |
Details: Non-web exception. Exception origin (name of application or object): mscorlib. | |
Exception stack trace: | |
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00064] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.IO/Directory.cs:113 | |
at System.IO.Directory.CreateDirectory (System.String path) [0x000a4] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.IO/Directory.cs:80 | |
at System.IO.DirectoryInfo.Create () [0x00000] in /private/tmp/source/bockbuild-xamarin/profiles/mono-mac-xamarin-no-pcl/build-root/mono-3.2.0/mcs/class/corlib/System.IO/DirectoryInfo.cs:141 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Bazinga | |
{ | |
using System; | |
using System.ComponentModel.Composition; | |
using System.ComponentModel.Composition.Hosting; | |
using Fix; | |
using Microsoft.Owin.Hosting; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace Some.Demo { | |
using System; | |
using Fix.Katana; | |
using Microsoft.Owin.Hosting; | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var hostname = "localhost"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
enum class MyEnum { | |
MyValOne { | |
override enum class InsideWeFind { | |
SubOne { | |
override fun BigFun() { | |
println("MyValOne only has one BigFun for SubOne.") | |
} | |
override fun SubFun() { | |
println("MyValOne only also has SubFun for SubOne.") |