Exemplo n.º 1
0
        private CommandInitializerProvider(CommandInitializerProviderOptions options, bool disposeInitializers)
        {
            // validate options before assigning
            foreach (KeyValuePair <Type, ICommandInitializer> mapping in options.Initializers)
            {
                ThrowIfInvalidCommandType(mapping.Key);
            }

            this.Options             = options;
            this.DisposeInitializers = disposeInitializers;
        }
Exemplo n.º 2
0
 /// <summary>Creates default command initializer map.</summary>
 public CommandInitializerProvider(CommandInitializerProviderOptions options) : this(options, false)
 {
 }