protected virtual void ConfigureSerializationConfiguration()
 {
     var config = new Lazy<SerializationConfiguration>(() =>
     {
         var contractResolver = new SerializationContractResolver();
         return new SerializationConfiguration(contractResolver);
     });
     SerializationConfigurationFn = () => config.Value;
 }
Esempio n. 2
0
        private void ConfigureSerializationConfigurationFn()
        {
            var serializationConfiguration = new Lazy<SerializationConfiguration>(() =>
            {
                var contractResolver = new SerializationContractResolver();

                return new SerializationConfiguration(contractResolver);
            });

            SerializationConfigurationFn = () => serializationConfiguration.Value;
        }