/System.Reactive.Tests/System/ErrorScheduler.cs
C# | 27 lines | 26 code | 1 blank | 0 comment | 0 complexity | faa3c92e13a6953e42f0760794cdeed2 MD5 | raw file
- using System;
- using System.Linq;
- using System.Reactive;
- using System.Reactive.Disposables;
- using System.Reactive.Concurrency;
- using System.Reactive.Linq;
- using System.Reactive.Subjects;
- namespace System
- {
- class ErrorScheduler : IScheduler
- {
- public DateTimeOffset Now { get { return DateTimeOffset.Now; } }
- public IDisposable Schedule<TState> (TState state, Func<IScheduler, TState, IDisposable> action)
- {
- throw new MyException ();
- }
- public IDisposable Schedule<TState> (TState state, DateTimeOffset dueTime, Func<IScheduler, TState, IDisposable> action)
- {
- throw new MyException ();
- }
- public IDisposable Schedule<TState> (TState state, TimeSpan dueTime, Func<IScheduler, TState, IDisposable> action)
- {
- throw new MyException ();
- }
- }
- }