public ReadStoreMediator(ReadStoreServiceFactory serviceFactory) { _serviceFactory = serviceFactory; }
public abstract Task <TResponse> Handle(IReadStoreRequest <TResponse> request, CancellationToken cancellationToken, ReadStoreServiceFactory serviceFactory);
public static T GetInstance <T>(this ReadStoreServiceFactory serviceFactory) => (T)serviceFactory(typeof(T));