public DynamicManifestReader(ManifestBuilder manifestBuilder, IUtcDateTimeProvider dateTimeProvider, IPublishingId publishingId, ISigner signer)
 {
     _ManifestBuilder  = manifestBuilder;
     _DateTimeProvider = dateTimeProvider;
     _PublishingId     = publishingId;
     _Signer           = signer;
 }
        private readonly IContentEntityFormatter _Formatter; //new StandardContentEntityFormatter(new ZippedSignedContentFormatter(contentSigner), new StandardPublishingIdFormatter(), jsonSerializer1);

        public ManifestBuilderAndFormatter(ManifestBuilder manifestBuilder, IUtcDateTimeProvider dateTimeProvider, ILogger <ManifestBuilderAndFormatter> logger, IContentEntityFormatter formatter)
        {
            _ManifestBuilder  = manifestBuilder ?? throw new ArgumentNullException(nameof(manifestBuilder));
            _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
            _Logger           = logger ?? throw new ArgumentNullException(nameof(logger));
            _Formatter        = formatter ?? throw new ArgumentNullException(nameof(formatter));
        }
Пример #3
0
 public GetLatestManifestCommand(IUtcDateTimeProvider dateTimeProvider, ExposureContentDbContext dbContext, ManifestBuilder manifestBuilder, IGaenContentConfig gaenContentConfig, IPublishingId publishingId)
 {
     _DateTimeProvider  = dateTimeProvider;
     _DbContext         = dbContext;
     _ManifestBuilder   = manifestBuilder;
     _GaenContentConfig = gaenContentConfig;
     _PublishingId      = publishingId;
 }
Пример #4
0
 public GetLatestManifestCommand(IUtcDateTimeProvider dateTimeProvider, IDbContextProvider <ExposureContentDbContext> dbContext, ManifestBuilder manifestBuilder, IAgConfig agConfig, IPublishingIdCreator publishingIdCreator)
 {
     _DateTimeProvider    = dateTimeProvider;
     _DbContext           = dbContext;
     _ManifestBuilder     = manifestBuilder;
     _AgConfig            = agConfig;
     _PublishingIdCreator = publishingIdCreator;
 }
Пример #5
0
 public GetLatestManifestCommandWithDbWrite(IUtcDateTimeProvider dateTimeProvider, ExposureContentDbContext dbContext, ManifestBuilder manifestBuilder, IGaenContentConfig gaenContentConfig, IPublishingId publishingId, IJsonSerializer jsonSerializer)
 {
     _DateTimeProvider  = dateTimeProvider;
     _DbContext         = dbContext;
     _ManifestBuilder   = manifestBuilder;
     _GaenContentConfig = gaenContentConfig;
     _PublishingId      = publishingId;
     _JsonSerializer    = jsonSerializer;
 }
Пример #6
0
 public ManifestUpdateCommand(ManifestBuilder builder, Func <ContentDbContext> contentDbProvider, ILogger <ManifestUpdateCommand> logger, IUtcDateTimeProvider dateTimeProvider, IJsonSerializer jsonSerializer, IContentEntityFormatter formatter)
 {
     _Builder           = builder ?? throw new ArgumentNullException(nameof(builder));
     _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));
 }