Skip to content

Instantly share code, notes, and snippets.

View david-driscoll's full-sized avatar
🏠
Working from home

David Driscoll david-driscoll

🏠
Working from home
View GitHub Profile
var Nested;
(function (Nested) {
var Namespaces;
(function (Namespaces) {
var Class1 = (function () {
function Class1() {
}
return Class1;
})();
Namespaces.Class1 = Class1;
namespace HelloWorld
{
public class Startup
{
public void Configure(IApplicationBuilder app)
{
var r = new Random();
app.MapWhen(context => r.Next(0, 2) > 0,
subApp => subApp.Use(async (context, next) =>
{
namespace HelloWorld
{
public class Startup
{
public void Configure(IApplicationBuilder app)
{
app.Use(async (context, next) =>
{
await context.Response.WriteAsync("Hello");
await next();
namespace HelloWorld
{
public class Startup
{
public void Configure(IApplicationBuilder app)
{
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World!");
});
namespace HelloWorld
{
public class Startup
{
public void Configure(IApplicationBuilder app)
{
app.Run(async (context) =>
{
await context.Response.WriteAsync("Hello World!");
});