This file contains hidden or 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 LigLogOwin | |
| { | |
| using System; | |
| using System.Diagnostics; | |
| using LibLogOwin.Logging; | |
| using Microsoft.Owin.Logging; | |
| using Owin; | |
| public class Startup | |
| { |
This file contains hidden or 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
| Exception exception; | |
| try | |
| { | |
| await Foo(); | |
| } | |
| catch(Exception ex) | |
| { | |
| exception = ex; | |
| } | |
| if(exception != null) |
This file contains hidden or 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
| Set-ExplorerOptions -showFileExtensions | |
| Enable-RemoteDesktop | |
| choco install classic-shell | |
| choco install GoogleChrome | |
| choco install postgresql | |
| choco install mysql | |
| choco install pgadmin3 |
This file contains hidden or 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 = Func<IDictionary<string, object>, Task>; | |
| using MidFunc = Func< | |
| Func<IDictionary<string, object>, Task>, | |
| Func<IDictionary<string, object>, Task> | |
| >; | |
| public static class MyMiddleware | |
| { | |
| public static MidFunc UseMyMiddleware() | |
| { |
This file contains hidden or 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 Owin | |
| { | |
| using System; | |
| using System.Globalization; | |
| using System.Threading; | |
| using AppFunc = System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task>; | |
| using MidFunc = System.Func< | |
| System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task>, | |
| System.Func<System.Collections.Generic.IDictionary<string, object>, System.Threading.Tasks.Task> | |
| >; |
This file contains hidden or 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 ConsoleApplication1 | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Net; | |
| using System.Security.Principal; | |
| using Microsoft.Owin.Hosting; | |
| using Nancy; | |
| using Owin; |
This file contains hidden or 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
| # Works for me. You may need to tweak it. Stick it in your powershell profile FTW | |
| function Rename-Project | |
| { | |
| # designed to run from the solution directory where the project is a child directory | |
| param( | |
| [string]$projectName=$(throw "projectName required."), | |
| [string]$newProjectName=$(throw "newProjectName required.") | |
| ) | |
This file contains hidden or 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 (c) Microsoft Open Technologies, Inc. All rights reserved. See License.txt in the project root for license information. | |
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Reflection; | |
| namespace Microsoft.Owin.FileSystems | |
| { | |
| /// <summary> |
This file contains hidden or 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 TestinNancyWithOwinTesting | |
| { | |
| using System; | |
| using System.Net.Http; | |
| using System.Threading.Tasks; | |
| using Nancy; | |
| using Nancy.Bootstrapper; | |
| using Nancy.Testing; | |
| using Owin; | |
| using Microsoft.Owin.Testing; |
This file contains hidden or 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
| <Style TargetType="{x:Type local:MainWindow}"> | |
| <Setter Property="WindowChrome.WindowChrome"> | |
| <Setter.Value> | |
| <WindowChrome /> | |
| </Setter.Value> | |
| </Setter> | |
| <Setter Property="Template"> | |
| <Setter.Value> | |
| <ControlTemplate TargetType="{x:Type local:MainWindow}"> | |
| <Grid> |