Exemplo n.º 1
0
        private CommandOutput(IContainer outputToUse, SettingsCollection outputSettings, bool export)
        {
            if (outputSettings == null)
            {
                throw new ArgumentNullException("outputSettings");
            }
            if (outputToUse == null)
            {
                throw new ArgumentNullException("outputToUse");
            }
            if (outputSettings.Type != SettingsCollectionResourceType.Output)
            {
                throw new ArgumentException("CommandOutput only accepts output settings collections");
            }

            Resource   = outputToUse;
            Settings   = outputSettings;
            IsExported = export;
            Id         = Guid.NewGuid().ToString();
        }
Exemplo n.º 2
0
 public static CommandOutput Create(IContainer outputToUse, SettingsCollection outputSettings, bool export)
 {
     return(new CommandOutput(outputToUse, outputSettings, export));
 }
Exemplo n.º 3
0
 public static CommandOutput Create(IContainer outputToUse, SettingsCollection outputSettings)
 {
     return(Create(outputToUse, outputSettings, true));
 }
Exemplo n.º 4
0
 public static CommandOutput Create(IContainer outputToUse)
 {
     return(Create(outputToUse, SettingsCollection.ForOutput()));
 }