Пример #1
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;
        }
Пример #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;
        }