/// <summary> /// Initializes a new instance of the <see cref="SportEntityWriter"/> class /// </summary> /// <param name="taskProcessor">A <see cref="TaskProcessor"/> used for processing of asynchronous requests</param> /// <param name="culture"> A <see cref="CultureInfo"/> specifying which language of the translatable properties to take</param> /// <param name="writeNotCacheableData">A <see cref="bool"/> indicating whether data not cached by the SDK should also be retrieved & written</param> internal SportEntityWriter(TaskProcessor taskProcessor, CultureInfo culture, bool writeNotCacheableData = false) { Guard.Argument(taskProcessor, nameof(taskProcessor)).NotNull(); Guard.Argument(culture, nameof(culture)).NotNull(); _taskProcessor = taskProcessor; _culture = culture; _writeNotCacheableData = writeNotCacheableData; }
/// <summary> /// Initializes a new instance of the <see cref="SportEntityWriter"/> class /// </summary> /// <param name="taskProcessor">A <see cref="TaskProcessor"/> used for processing of asynchronous requests</param> /// <param name="culture"> A <see cref="CultureInfo"/> specifying which language of the translatable properties to take</param> /// <param name="writeNotCacheableData">A <see cref="bool"/> indicating whether data not cached by the SDK should also be retrieved & written</param> internal SportEntityWriter(TaskProcessor taskProcessor, CultureInfo culture, bool writeNotCacheableData = false) { Contract.Requires(taskProcessor != null); Contract.Requires(culture != null); _taskProcessor = taskProcessor; _culture = culture; _writeNotCacheableData = writeNotCacheableData; }
/// <summary> /// Initializes a new instance of the <see cref="SportEntityWriter"/> class /// </summary> /// <param name="taskProcessor">A <see cref="TaskProcessor"/> used for processing of asynchronous requests</param> /// <param name="culture"> A <see cref="CultureInfo"/> specifying which language of the translatable properties to take</param> /// <param name="writeNotCacheableData">A <see cref="bool"/> indicating whether data not cached by the SDK should also be retrieved & written</param> /// <param name="log">A <see cref="ILogger" /> instance used for logging</param> internal SportEntityWriter(TaskProcessor taskProcessor, CultureInfo culture, bool writeNotCacheableData = false, ILogger log = null) { Guard.Argument(taskProcessor, nameof(taskProcessor)).NotNull(); Guard.Argument(culture, nameof(culture)).NotNull(); _taskProcessor = taskProcessor; _culture = culture; _writeNotCacheableData = writeNotCacheableData; _log = log ?? new NullLogger <SportEntityWriter>(); }
public MarketWriter(TaskProcessor taskProcessor, CultureInfo culture, ILogger log) { _culture = culture; _taskProcessor = taskProcessor; _log = log ?? new NullLogger <MarketWriter>(); }
public MarketMappingsWriter(ILog log, TaskProcessor taskProcessor, CultureInfo culture) { _log = log; _taskProcessor = taskProcessor; _culture = culture; }