/// <summary> /// Initializes a new instance of the <see cref="ConfigCreateFromManager"/> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="moduleServiceManager">The module service manager.</param> /// <param name="defaultValueManager">The default value manager.</param> /// <param name="blockManager">The block manager.</param> public ConfigCreateFromManager(ILogger <ConfigCreateFromManager> logger, IModuleServiceManager moduleServiceManager, IDefaultValueManager defaultValueManager, IBlockManager blockManager) : base(logger) { EnsureArg.IsNotNull(logger, nameof(logger)); EnsureArg.IsNotNull(defaultValueManager, nameof(defaultValueManager)); EnsureArg.IsNotNull(blockManager, nameof(blockManager)); EnsureArg.IsNotNull(moduleServiceManager, nameof(moduleServiceManager)); _blockManager = blockManager; _defaultValueManager = defaultValueManager; _logger = logger; _moduleServiceManager = moduleServiceManager; }
/// <summary> /// Initializes a new instance of the <see cref="BlockServiceManager"/> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="blockGitConnectionOptions">The block git connection options.</param> /// <param name="gitRepoManager">The git repo manager.</param> public BlockServiceManager(ILogger <BlockServiceManager> logger, BlockGitConnectionOptions blockGitConnectionOptions, IGitRepositoryManager gitRepoManager, IModuleServiceManager moduleServiceManager) { EnsureArg.IsNotNull(logger, nameof(logger)); EnsureArg.IsNotNull(moduleServiceManager, nameof(moduleServiceManager)); EnsureArg.IsNotNull(blockGitConnectionOptions, nameof(blockGitConnectionOptions)); EnsureArg.IsNotNull(gitRepoManager, nameof(gitRepoManager)); _logger = logger; _moduleServiceManager = moduleServiceManager; _blockGitConnectionOptions = blockGitConnectionOptions; _repoManager = gitRepoManager; }
/// <summary> /// Initializes a new instance of the <see cref="DefaultValueManager"/> class. /// </summary> /// <param name="logger">The logger.</param> /// <param name="moduleServiceManager">The module service manager.</param> /// <param name="protoParser">The proto parser.</param> /// <param name="customMessageParser">The custom message parser.</param> /// <param name="firmwareVersionServiceManager">The firmware version service manager.</param> /// <param name="moduleParser">The module parser.</param> public DefaultValueManager(ILogger <DefaultValueManager> logger, IModuleServiceManager moduleServiceManager, IProtoMessageParser protoParser, ICustomMessageParser customMessageParser, IFirmwareVersionServiceManager firmwareVersionServiceManager, IModuleParser moduleParser) : base(logger) { EnsureArg.IsNotNull(logger, nameof(logger)); EnsureArg.IsNotNull(moduleServiceManager, nameof(moduleServiceManager)); EnsureArg.IsNotNull(firmwareVersionServiceManager, nameof(firmwareVersionServiceManager)); EnsureArg.IsNotNull(protoParser, nameof(protoParser)); EnsureArg.IsNotNull(customMessageParser, nameof(customMessageParser)); EnsureArg.IsNotNull(moduleParser, nameof(moduleParser)); _moduleServiceManager = moduleServiceManager; _firmwareVersionServiceManager = firmwareVersionServiceManager; _protoParser = protoParser; _customMessageParser = customMessageParser; _moduleParser = moduleParser; _logger = logger; }