public EventAutomationSettings(BindingConfiguration binding,
            ICommandAutomationSettings commandSettings)
        {
            Guard.NotNull(() => binding, binding);

            // TODO: eventually, either command or wizard may be specified.
            Guard.NotNull(() => commandSettings, commandSettings);

            if (!(typeof(IObservable<IEventPattern<object, EventArgs>>).IsAssignableFrom(binding.Type)))
            {
                throw new ArgumentException(Strings.EventAutomationSettings.EventTypeMustBeObservable(
                    Stringly.ToTypeName(typeof(IObservable<IEventPattern<object, EventArgs>>))));
            }

            this.Binding = binding;
            this.CommandSettings = commandSettings;
        }
예제 #2
0
 public CommandAutomation(IComponent owner, ICommandAutomationSettings settings)
 {
 }