Example #1
0
            internal MediaTypeFormatter CreateFormatter()
            {
                JsonMediaTypeFormatter formatter = new JsonMediaTypeFormatter();
                SerializerManager      factory   = new SerializerManager(_setups, SerializationTypeRegistry.Default);

                factory.ConfigureJsonSerializerSettings(formatter.SerializerSettings);
                return(formatter);
            }