public FileBasedPubSubSubscription(string basePath, PubSubJobsExecutor executor) { this.basePath = basePath; this.watchers = new ConcurrentDictionary <string, FileSystemWatcher>(); this.messageGuids = new ConcurrentDictionary <string, Guid>(); this._executor = executor; }
public FileBasedPubSub(string basePath, PubSubJobsExecutor executor = null) { this.basePath = basePath; subscriptions = new ConcurrentBag <ISubscription>(); this._executor = executor ?? new PubSubJobsExecutor(this); }