Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ValidatedDisbsadCommandHandler"/> class.
 /// </summary>
 /// <param name="query">The query<see cref="IQueryFlow{Disbsad}"/></param>
 /// <param name="writer">The writer<see cref="IProjectionWriter"/></param>
 /// <param name="applicationBuilder">The applicationBuilder<see cref="IApplicationBuilder"/></param>
 public ValidatedDisbsadCommandHandler(IQueryFlow <Disbsad> query, IProjectionWriter writer, IApplicationBuilder applicationBuilder)
 {
     this.query         = query;
     this.writer        = writer;
     coreKeyVaultClient = applicationBuilder?.ApplicationServices.GetRequiredService <ICoreKeyVaultClient>();
     validator          = new DisbsadValidator();
 }
Beispiel #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ValidatedBoalfCommandHandler"/> class.
        /// </summary>
        /// <param name="query">The query<see cref="IQueryFlow{Boalf}"/></param>
        /// <param name="applicationBuilder">The applicationBuilder<see cref="IApplicationBuilder"/></param>
        /// <param name="fileProcessService">The fileProcessService<see cref="IFileProcessService"/></param>
        public ValidatedBoalfCommandHandler(IQueryFlow <Boalf> query, IApplicationBuilder applicationBuilder, IFileProcessService fileProcessService)
        {
            this.query = query;
            if (applicationBuilder != null)
            {
                coreKeyVaultClient = applicationBuilder.ApplicationServices.GetRequiredService <ICoreKeyVaultClient>();
            }

            this.fileProcessService = fileProcessService;
        }
Beispiel #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ValidatedFpnCommandHandler"/> class.
 /// </summary>
 /// <param name="query">The query<see cref="IQueryFlow{Fpn}"/></param>
 /// <param name="writer">The writer<see cref="IProjectionWriter"/></param>
 /// <param name="applicationBuilder">The applicationBuilder<see cref="IApplicationBuilder"/></param>
 public ValidatedFpnCommandHandler(IQueryFlow <Fpn> query, IProjectionWriter writer, IApplicationBuilder applicationBuilder)
 {
     _query              = query;
     _writer             = writer;
     _coreKeyVaultClient = applicationBuilder?.ApplicationServices.GetRequiredService <ICoreKeyVaultClient>();
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="FileProcessService"/> class.
 /// </summary>
 /// <param name="query">The query<see cref="IQueryFlow{Boalf}"/></param>
 /// <param name="writer">The writer<see cref="IProjectionWriter"/></param>
 /// <param name="applicationBuilder">The applicationBuilder<see cref="IApplicationBuilder"/></param>
 public FileProcessService(IQueryFlow <Boalf> query, IProjectionWriter writer, IApplicationBuilder applicationBuilder)
 {
     this.query         = query;
     this.writer        = writer;
     coreKeyVaultClient = applicationBuilder?.ApplicationServices.GetRequiredService <ICoreKeyVaultClient>();
 }