internal static void Initialize(Func<RuntimePolicy> runtimePolicyStrategy, Func<IExecutionTimer> timerStrategy, IMessageBroker messageBroker)
    {
      JsonSerializerSettingsFactory settingsFactory = new JsonSerializerSettingsFactory(
        JsonConvert.DefaultSettings,
        runtimePolicyStrategy,
        timerStrategy,
        messageBroker);

      JsonConvert.DefaultSettings = settingsFactory.GetDefaultSerializerSettings;
    }
Esempio n. 2
0
        internal static void Initialize(Func <RuntimePolicy> runtimePolicyStrategy, Func <IExecutionTimer> timerStrategy, IMessageBroker messageBroker)
        {
            JsonSerializerSettingsFactory settingsFactory = new JsonSerializerSettingsFactory(
                JsonConvert.DefaultSettings,
                runtimePolicyStrategy,
                timerStrategy,
                messageBroker);

            JsonConvert.DefaultSettings = settingsFactory.GetDefaultSerializerSettings;
        }