예제 #1
0
 public ManifestUpdateCommand(
     ManifestV2Builder v2Builder,
     ManifestV3Builder v3Builder,
     ManifestV4Builder v4Builder,
     Func <ContentDbContext> contentDbProvider,
     ManifestUpdateCommandLoggingExtensions logger,
     IUtcDateTimeProvider dateTimeProvider,
     IJsonSerializer jsonSerializer,
     Func <IContentEntityFormatter> formatter)
 {
     _V2Builder         = v2Builder ?? throw new ArgumentNullException(nameof(v2Builder));
     _V3Builder         = v3Builder ?? throw new ArgumentNullException(nameof(v3Builder));
     _V4Builder         = v4Builder ?? throw new ArgumentNullException(nameof(v4Builder));
     _ContentDbProvider = contentDbProvider ?? throw new ArgumentNullException(nameof(contentDbProvider));
     _Logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _DateTimeProvider  = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
     _JsonSerializer    = jsonSerializer ?? throw new ArgumentNullException(nameof(jsonSerializer));
     _Formatter         = formatter ?? throw new ArgumentNullException(nameof(formatter));
 }
 public ManifestUpdateCommand(
     ManifestBuilder builder,
     ManifestBuilderV3 builderForV3,
     ManifestBuilderV4 builderForV4,
     Func <ContentDbContext> contentDbProvider,
     ManifestUpdateCommandLoggingExtensions logger,
     IUtcDateTimeProvider dateTimeProvider,
     IJsonSerializer jsonSerializer,
     Func <IContentEntityFormatter> formatter
     )
 {
     _Builder           = builder ?? throw new ArgumentNullException(nameof(builder));
     _BuilderForV3      = builderForV3 ?? throw new ArgumentNullException(nameof(builderForV3));
     _BuilderForV4      = builderForV4 ?? throw new ArgumentNullException(nameof(builderForV4));
     _ContentDbProvider = contentDbProvider ?? throw new ArgumentNullException(nameof(contentDbProvider));
     _Logger            = logger ?? throw new ArgumentNullException(nameof(logger));
     _DateTimeProvider  = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
     _JsonSerializer    = jsonSerializer ?? throw new ArgumentNullException(nameof(jsonSerializer));
     _Formatter         = formatter ?? throw new ArgumentNullException(nameof(formatter));
 }