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;
    }
Exemplo 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;
        }