public static CreateStreamStoreNotifier CreateStreamStoreNotifier(int interval = 1000) { return(async readonlyStreamStore => { var poller = new PollingStreamStoreNotifier(readonlyStreamStore, interval); await poller.Start().NotOnCapturedContext(); return poller; }); }