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 class Program | |
{ | |
} |
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
swagger: '2.0' | |
info: | |
version: v1 | |
title: Contact List | |
description: A Contact list API based on Swagger and built using Node.js | |
host: localhost | |
schemes: | |
- http | |
- https | |
basePath: / |
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 GenericRestTools | |
{ | |
using Newtonsoft.Json; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Text; | |
using System.Threading.Tasks; |
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 WebSitesWithOnPremIntegration.Core | |
{ | |
public class Customer | |
{ | |
public long Id { get; set; } | |
public string Name { get; set; } | |
public string City { get; set; } | |
public string Country { get; set; } | |
} | |
} |
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
internal sealed class Configuration : DbMigrationsConfiguration<SpatialDemo.Models.SpatialDemoContext> | |
{ | |
public Configuration() | |
{ | |
AutomaticMigrationsEnabled = true; | |
} | |
protected override void Seed(SpatialDemo.Models.SpatialDemoContext context) | |
{ | |
context.Locations.AddOrUpdate((x) => x.Name, |
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
static void Main(string[] args) | |
{ | |
Debug.Listeners.Add(new ConsoleTraceListener()); | |
Debug.AutoFlush = true; | |
string url = "http://*:8081/"; | |
var server = new Server(url); | |
server.Configuration.DisconnectTimeout = TimeSpan.Zero; | |
server.AuthenticationSchemes = AuthenticationSchemes.Ntlm; |
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
[HubName("chat")] | |
public class ChatHub : Hub | |
{ | |
public void SendMessage(dynamic message) | |
{ | |
Clients.receiveMessage(message); | |
} | |
} |
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
<?xml version="1.0" encoding="utf-8"?> | |
<configuration> | |
<system.web> | |
<compilation debug="true" targetFramework="4.0" /> | |
</system.web> | |
<appSettings> | |
<add key="LogStorageConnectionString" | |
value="DefaultEndpointsProtocol=https;AccountName=[YOUR-ACCOUNT];AccountKey=[YOUR-KEY]" /> | |
</appSettings> | |
<system.webServer> |
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
<!DOCTYPE html> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title></title> | |
</head> | |
<body> | |
<div id="message"></div> | |
<script type="text/javascript" src="Scripts/jquery-1.6.2.js"></script> | |
<script type="text/javascript"> | |
$(function () { |
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 NandyFxDemo.NancyStuff | |
{ | |
public class Bootstrapper : Nancy.DefaultNancyBootstrapper | |
{ | |
protected override void ConfigureConventions(Nancy.Conventions.NancyConventions nancyConventions) | |
{ | |
base.ConfigureConventions(nancyConventions); | |
nancyConventions.StaticContentsConventions.Add( | |
Nancy.Conventions.StaticContentConventionBuilder.AddFile("/Default.html", "Default.html") |
NewerOlder