public PaymentEntityReadModelProjection(ILogger logger, IRepository repository) { logger.GuardAgainstNull(nameof(logger)); repository.GuardAgainstNull(nameof(repository)); this.logger = logger; this.paymentStorage = new GeneralReadModelStorage <Payment>(logger, repository); }
public PersonAggregateReadModelProjection(ILogger logger, IRepository repository) { logger.GuardAgainstNull(nameof(logger)); repository.GuardAgainstNull(nameof(repository)); this.logger = logger; this.personStorage = new GeneralReadModelStorage <Person>(logger, repository); }
public PersonEntityReadModelProjection(IRecorder recorder, IRepository repository) { recorder.GuardAgainstNull(nameof(recorder)); repository.GuardAgainstNull(nameof(repository)); this.recorder = recorder; this.personStorage = new GeneralReadModelStorage <Person>(recorder, repository); }
public CarEntityReadModelProjection(IRecorder recorder, IRepository repository) { recorder.GuardAgainstNull(nameof(recorder)); repository.GuardAgainstNull(nameof(repository)); this.recorder = recorder; this.carStorage = new GeneralReadModelStorage <Car>(recorder, repository); this.unavailabilityStorage = new GeneralReadModelStorage <Unavailability>(recorder, repository); }
public ClinicEntityReadModelProjection(ILogger logger, IRepository repository) { logger.GuardAgainstNull(nameof(logger)); repository.GuardAgainstNull(nameof(repository)); this.logger = logger; this.clinicStorage = new GeneralReadModelStorage <Clinic>(logger, repository); this.doctorStorage = new GeneralReadModelStorage <Doctor>(logger, repository); this.unavailabilityStorage = new GeneralReadModelStorage <Unavailability>(logger, repository); }
public ReadModelHandler(IReadModelStorage <TReadModel> storage) { _storage = storage; var subscriptionTypes = typeof(TReadModel).GetReadModelSubscribersTypes(); foreach (var types in subscriptionTypes) { var method = GetType().GetMethod(nameof(Command), BindingFlags.Instance | BindingFlags.NonPublic); method?.MakeGenericMethod(types.Item1, types.Item2).Invoke(this, null); } }
public UsersQueryHandler(IReadModelStorage <UsersInfoReadModel> storage) { _storage = storage as IQueryableReadModelStorage <UsersInfoReadModel>; }
public AppointmentEventHandler(IReadModelStorage <AppointmentReadModel> storage) { this.storage = storage; }