Beispiel #1
0
        public FeedModule()
        {
            feed = SimpleAtomPubSub.Configure.AsADirectFeedReader("EventStore");

            Get["/"] = _ => feed.GetWorkingFeed(new Uri(Context.Request.Url.SiteBase));
            Get["/{name}"] = parameters => feed.GetArchiveFeed(string.Concat("/", parameters.name), new Uri(Context.Request.Url.SiteBase));
        }
Beispiel #2
0
 public QueryEventHandler(
     IReadModelRepository readModelRepository,
     IVersionRepository versionRepository,
     IEventFeed <QueryEventHandler <TQuerry, TEvent> > eventFeed)
 {
     _readModelRepository = readModelRepository;
     _versionRepository   = versionRepository;
     _eventFeed           = eventFeed;
 }
Beispiel #3
0
 public ReadModelEventHandler(
     IReadModelRepository readModelRepository,
     IVersionRepository versionRepository,
     IEventFeed <ReadModelEventHandler <T> > eventFeed)
 {
     _readModelRepository = readModelRepository;
     _versionRepository   = versionRepository;
     _eventFeed           = eventFeed;
 }
Beispiel #4
0
 public AsyncEventHandler(
     IVersionRepository versionRepository,
     IEventFeed <AsyncEventHandler <TConcreteHandlerType, TSubscribedDomainEvent> > eventFeed,
     IHandleAsync <TSubscribedDomainEvent> handler)
 {
     _versionRepository = versionRepository;
     _eventFeed         = eventFeed;
     _handler           = handler;
 }
 public FhirApiClient(
     ILoggerFactory log,
     IAccessTokenSource managedIdentity,
     IHttp http,
     IJson json,
     IEventFeed eventFeed,
     ISettings settings)
 {
     this.log             = log.CreateLogger <FhirApiClient>();
     this.managedIdentity = managedIdentity;
     this.http            = http;
     this.json            = json;
     this.fhirUrl         = settings.GetSetting("FHIR_SERVER_URL");
     this.eventFeed       = eventFeed;
 }
Beispiel #6
0
 public AccountDeletionJob(
     ILoggerFactory log,
     IExceptionFilter exceptionFilter,
     IFhirClient fhirClient,
     IConsentStore consentStore,
     IVendorClient vendorClient,
     IEventFeed eventFeed)
 {
     this.log             = log.CreateLogger <AccountDeletionJob>();
     this.exceptionFilter = exceptionFilter;
     this.fhirClient      = fhirClient;
     this.consentStore    = consentStore;
     this.vendorClient    = vendorClient;
     this.eventFeed       = eventFeed;
 }
 public void SetUp()
 {
     syndicateItemEntityFactory = new SyndicateItemEntityFactory();
     mockSyndicationService = new Mock<ISyndicationService>();
     gitHubPublicActivityFeed = new BlogPostFeed(mockSyndicationService.Object);
 }
 public UserNewAwardEventHandler(IEventFeed eventFeed, ILogger <UserNewAwardEventHandler> logger, IReader reader)
     : base(logger)
 {
     _eventFeed = eventFeed;
     _reader    = reader;
 }
 public EventTestController(IEventFeed eventFeed, IReader reader)
 {
     _eventFeed = eventFeed;
     _reader    = reader;
 }