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;
        }
Exemple #2
0
        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;
        }