public Controller() { _settingsCache = new T4MVCSettingsCache(); _projectSubscription = Observable.FromEventPattern<ProjectEventArgs>(e => Update += e, e => Update -= e) .Select(e => e.EventArgs.Project) .GroupBy(p => p) .SelectMany(g => g.Throttle(TimeSpan.FromSeconds(1))) .Subscribe(RunTemplate); }
public Controller() { _settingsCache = new T4MVCSettingsCache(); _projectSubscription = Observable.FromEventPattern <ProjectEventArgs>(e => Update += e, e => Update -= e) .Select(e => e.EventArgs.Project) .GroupBy(p => p) .SelectMany(g => g.Throttle(TimeSpan.FromSeconds(1))) .Subscribe(RunTemplate); }