public AjaxContinuationPolicy()
        {
            Where.ResourceTypeImplements <AjaxContinuation>();

            Conneg.AllowHttpFormPosts();
            Conneg.AcceptJson();

            Conneg.ClearAllWriters();
            Conneg.AddWriter(typeof(AjaxContinuationWriter <>));
        }
Beispiel #2
0
        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();
        }