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(); }
public static CommandOutput Create(IContainer outputToUse, SettingsCollection outputSettings, bool export) { return(new CommandOutput(outputToUse, outputSettings, export)); }
public static CommandOutput Create(IContainer outputToUse, SettingsCollection outputSettings) { return(Create(outputToUse, outputSettings, true)); }
public static CommandOutput Create(IContainer outputToUse) { return(Create(outputToUse, SettingsCollection.ForOutput())); }