Exemplo n.º 1
0
 public CombinedDockerModule(string version, ModuleStatus status, RestartPolicy restartPolicy, string type, CombinedDockerConfig settings, IDictionary <string, EnvVal> env)
     : this(null, version, status, restartPolicy, settings, null, env)
 {
 }
Exemplo n.º 2
0
 public CombinedDockerModule(string name, string version, ModuleStatus desiredStatus, RestartPolicy restartPolicy, CombinedDockerConfig settings, ConfigurationInfo configurationInfo, IDictionary <string, EnvVal> env)
 {
     this.Name              = name;
     this.Version           = version ?? string.Empty;
     this.DesiredStatus     = Preconditions.CheckIsDefined(desiredStatus);
     this.Config            = Preconditions.CheckNotNull(settings, nameof(settings));
     this.RestartPolicy     = Preconditions.CheckIsDefined(restartPolicy);
     this.ConfigurationInfo = configurationInfo ?? new ConfigurationInfo(string.Empty);
     this.Env = env?.ToImmutableDictionary() ?? ImmutableDictionary <string, EnvVal> .Empty;
 }