public AjaxContinuationPolicy() { Where.ResourceTypeImplements <AjaxContinuation>(); Conneg.AllowHttpFormPosts(); Conneg.AcceptJson(); Conneg.ClearAllWriters(); Conneg.AddWriter(typeof(AjaxContinuationWriter <>)); }
public MyConnegPolicy() { // Apply some sort of matching // filter. Where.ChainMatches(chain => true); Conneg.AcceptJson(); Conneg.AllowHttpFormPosts(); Conneg.ApplyConneg(); Conneg.AddHtml(); Conneg.AddWriter(typeof(SpecialContentMediaWriter)); Conneg.ClearAllWriters(); Conneg.MakeAsymmetricJson(); Conneg.MakeSymmetricJson(); }