public DispatcherMessage(MessageSourceOptions source, IDispatcherAction action) { if ((source != MessageSourceOptions.Server) && (source != MessageSourceOptions.View)) throw new ArgumentOutOfRangeException("source"); if (action == null) throw new ArgumentNullException("action"); Source = source; Action = action; }
public DispatcherMessage(MessageSourceOptions source, IDispatcherAction action) { if ((source != MessageSourceOptions.Server) && (source != MessageSourceOptions.View)) { throw new ArgumentOutOfRangeException("source"); } if (action == null) { throw new ArgumentNullException("action"); } Source = source; Action = action; }