예제 #1
0
        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);
        }
예제 #2
0
        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);
        }