I hereby claim:
- I am rammesses on github.
- I am rammesses (https://keybase.io/rammesses) on keybase.
- I have a public key ASCs_i9WARyYasJiCb203VKH4UhI5wvT28eATlNzrrCiFwo
To claim this, I am signing this object:
{ | |
"$schema": "http://json.schemastore.org/proxies", | |
"proxies": { | |
"StaticContent": { | |
"matchCondition": { | |
"route": "/web/{*path}", | |
"methods": [ | |
"GET", | |
"HEAD" | |
] |
public interface IMyInterface | |
{ | |
} | |
public interface IMyInterface<T> | |
{ | |
Type TargetType { get } => typeof(T); | |
} |
/// <summary> | |
/// The correct way to add a custom converter to Newtonsoft JsonConvert | |
/// </summary> | |
public static class JsonHelper | |
{ | |
private static readonly object Padlock = new object(); | |
private static readonly JsonSerializerSettings DefaultSettings = new JsonSerializerSettings(); | |
private static Func<JsonSerializerSettings> GetDefaultSettings => () => DefaultSettings; | |
public static void AddJsonNetConverters() |
/// <summary> | |
/// How *NOT* to add a custom converter to Newtonsoft JsonConvert | |
/// </summary> | |
public static class JsonHelper | |
{ | |
public static void AddJsonNetConverters() | |
{ | |
var defaultSettings = JsonConvert.DefaultSettings; | |
JsonConvert.DefaultSettings = () => | |
{ |
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
exports.handler = (event, context, callback) => { | |
const response = event.Records[0].cf.response; | |
const headers = response.headers; | |
const hstsName = 'Strict-Transport-Security'; | |
const hstsValue = 'max-age=31536000; includeSubDomains'; | |
headers[hstsName.toLowerCase()] = [{ |
public class WebHttpBehavior : IEndpointBehavior, IWmiInstanceProvider | |
{ | |
public virtual void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) | |
{ | |
… | |
if (this.HelpEnabled) | |
{ | |
HelpPage helpPage = new HelpPage(this, endpoint.Contract); | |
DispatchOperation dispatchOperation = new DispatchOperation(endpointDispatcher.DispatchRuntime, "HelpPageInvoke", (string) null, (string) null) |