Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@jokecamp
jokecamp / ConsoleExample.cs
Last active December 13, 2015 21:48
RSS Example Output
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")]
@jokecamp
jokecamp / client.html
Last active August 29, 2015 14:03
Working Socket.io 1.0 with path option
<!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>
@jokecamp
jokecamp / AppHostBase
Created June 4, 2014 15:17
ServiceStack v3.9.55.0 - Dynamically add OPTIONS to all routes
/// 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");
}