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