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 System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Net; | |
using ServiceStack.Text; | |
using System.Runtime.Serialization; | |
using System.Xml; | |
[assembly: ContractNamespace("", ClrNamespace = "ServiceStackTester")] |
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> | |
<head> | |
<title>Socket.IO chat</title> | |
</head> | |
<body> | |
<form action=""> | |
<input type="input" id="m" /><button>Send</button> | |
</form> | |
<pre id="output"></pre> |
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
/// Call this ad the end of your app host Configure(Funq.Container container) method | |
private void AddOptionsVerbToAllRoutes(IServiceRoutes routes) | |
{ | |
var map = EndpointHost.ServiceManager.ServiceController.RestPathMap; | |
foreach (var key in map.Keys) | |
{ | |
foreach (RestPath rp in map[key]) | |
{ | |
routes.Add(rp.RequestType, rp.Path, "OPTIONS"); | |
} |
NewerOlder