public DynamicManifestReader(ManifestBuilder manifestBuilder, IUtcDateTimeProvider dateTimeProvider, IPublishingId publishingId, ISigner signer)
 {
     _ManifestBuilder  = manifestBuilder;
     _DateTimeProvider = dateTimeProvider;
     _PublishingId     = publishingId;
     _Signer           = signer;
 }
 public HttpGetCdnContentCommand(ContentDbContext dbContext, IPublishingId publishingId, ILogger <HttpGetCdnContentCommand> logger, IHttpResponseHeaderConfig httpResponseHeaderConfig)
 {
     _DbContext                = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _PublishingId             = publishingId ?? throw new ArgumentNullException(nameof(publishingId));
     _Logger                   = logger ?? throw new ArgumentNullException(nameof(logger));
     _HttpResponseHeaderConfig = httpResponseHeaderConfig ?? throw new ArgumentNullException(nameof(httpResponseHeaderConfig));
 }
Ejemplo n.º 3
0
 public ContentInsertDbCommand(ContentDbContext dbContext, IUtcDateTimeProvider dateTimeProvider, IPublishingId publishingId, ZippedSignedContentFormatter signedFormatter)
 {
     _DbContext        = dbContext ?? throw new ArgumentNullException(nameof(dbContext));
     _DateTimeProvider = dateTimeProvider ?? throw new ArgumentNullException(nameof(dateTimeProvider));
     _PublishingId     = publishingId ?? throw new ArgumentNullException(nameof(publishingId));
     _SignedFormatter  = signedFormatter ?? throw new ArgumentNullException(nameof(signedFormatter));
 }
Ejemplo n.º 4
0
 public GetLatestManifestCommand(IUtcDateTimeProvider dateTimeProvider, ExposureContentDbContext dbContext, ManifestBuilder manifestBuilder, IGaenContentConfig gaenContentConfig, IPublishingId publishingId)
 {
     _DateTimeProvider  = dateTimeProvider;
     _DbContext         = dbContext;
     _ManifestBuilder   = manifestBuilder;
     _GaenContentConfig = gaenContentConfig;
     _PublishingId      = publishingId;
 }
Ejemplo n.º 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;
 }
 public ExposureKeySetBatchJobMk2(/*IExposureKeySetBatchJobConfig jobConfig,*/ IGaenContentConfig gaenContentConfig, IExposureKeySetBuilder builder, WorkflowDbContext workflowDbContext, ExposureContentDbContext contentDbContext, IUtcDateTimeProvider dateTimeProvider, IPublishingId publishingId)
 {
     //_JobConfig = jobConfig;
     _GaenContentConfig = gaenContentConfig;
     _SetBuilder        = builder;
     _WorkflowDbContext = workflowDbContext;
     _ContentDbContext  = contentDbContext;
     _PublishingId      = publishingId;
     _Used   = new List <EksCreateJobInputEntity>(_GaenContentConfig.ExposureKeySetCapacity); //
     _Start  = dateTimeProvider.Now();
     JobName = $"ExposureKeySetsJob_{_Start:u}".Replace(" ", "_").Replace(":", "_");
 }
 public ExposureKeySetBatchJobMk2(/*IExposureKeySetBatchJobConfig jobConfig,*/ IGaenContentConfig gaenContentConfig, IExposureKeySetBuilder builder, WorkflowDbContext workflowDbContext, PublishingJobDbContext publishingDbContext, ContentDbContext contentDbContext, IUtcDateTimeProvider dateTimeProvider, IPublishingId publishingId, ILogger <ExposureKeySetBatchJobMk2> logger)
 {
     //_JobConfig = jobConfig;
     _GaenContentConfig   = gaenContentConfig ?? throw new ArgumentNullException(nameof(gaenContentConfig));
     _SetBuilder          = builder ?? throw new ArgumentNullException(nameof(builder));
     _WorkflowDbContext   = workflowDbContext ?? throw new ArgumentNullException(nameof(workflowDbContext));
     _PublishingDbContext = publishingDbContext ?? throw new ArgumentNullException(nameof(publishingDbContext));
     _ContentDbContext    = contentDbContext ?? throw new ArgumentNullException(nameof(contentDbContext));
     _PublishingId        = publishingId;
     _Logger  = logger ?? throw new ArgumentNullException(nameof(logger));
     _Used    = new List <EksCreateJobInputEntity>(_GaenContentConfig.ExposureKeySetCapacity); //
     _Start   = dateTimeProvider.Now();
     _JobName = $"ExposureKeySetsJob_{_Start:u}".Replace(" ", "_").Replace(":", "_");
 }
 public HttpGetBinaryContentCommand(IReader <T> safeReader, IPublishingId publishingId)
 {
     _SafeReader   = safeReader;
     _PublishingId = publishingId;
 }
 public StandardContentEntityFormatter(ZippedSignedContentFormatter signedFormatter, IPublishingId publishingId)
 {
     _SignedFormatter = signedFormatter;
     _PublishingId    = publishingId;
 }
Ejemplo n.º 10
0
 public StandardContentEntityFormatter(ZippedSignedContentFormatter signedFormatter, IPublishingId publishingId)
 {
     _SignedFormatter = signedFormatter;
     _PublishingId    = publishingId;
     _JsonSerializer  = new StandardJsonSerializer();
 }
 public ExposureKeySetDbWriter(ExposureContentDbContext dbContext, IPublishingId publishingId)
 {
     _DbContext    = dbContext;
     _PublishingId = publishingId;
 }
 public HttpGetSignedCdnContentOnlyCommand(IReader <T> safeReader, IPublishingId publishingId)
 {
     _SafeReader   = safeReader;
     _PublishingId = publishingId;
 }
 public StandardContentEntityFormatter(ZippedSignedContentFormatter signedFormatter, IPublishingId publishingId, IJsonSerializer jsonSerializer)
 {
     _SignedFormatter = signedFormatter ?? throw new ArgumentNullException(nameof(signedFormatter));
     _PublishingId    = publishingId ?? throw new ArgumentNullException(nameof(publishingId));
     _JsonSerializer  = jsonSerializer ?? throw new ArgumentNullException(nameof(jsonSerializer));
 }