Observable.FromEventPattern<Outlook.NewMailReceivedEventArgs>(_outlookManager, "MailReceived", Scheduler.ThreadPool). Throttle(TimeSpan.FromSeconds(.7)).ObserveOn(Scheduler.ThreadPool).Subscribe(evt => { //some work performs here... }, ex => ViewModelLocator.Logger.Error("Error in mail pull workflow", ex) , _cts.Token);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)