public Task <IDisposable> SubscribeAsync(string pattern, Action <IFileInfo> handler) { var subscription = new LookupFileSystemSubscription(this, handler); _subscriptions.Add(subscription); return(Task.FromResult <IDisposable>(subscription)); }
public Task<IDisposable> SubscribeAsync(string pattern, Action<IFileInfo> handler) { var subscription = new LookupFileSystemSubscription(this, handler); _subscriptions.Add(subscription); return Task.FromResult<IDisposable>(subscription); }
private void Unsubscribe(LookupFileSystemSubscription subscription) { _subscriptions.Remove(subscription); }
private void Unsubscribe(LookupFileSystemSubscription subscription) { _subscriptions.Remove(subscription); }