Example #1
0
 public DockerCommandFactory(IDockerClient dockerClient, DockerLoggingConfig dockerLoggingConfig, IConfigSource configSource, ICombinedConfigProvider <CombinedDockerConfig> combinedConfigProvider)
 {
     this.client                 = Preconditions.CheckNotNull(dockerClient, nameof(dockerClient));
     this.dockerLoggerConfig     = Preconditions.CheckNotNull(dockerLoggingConfig, nameof(dockerLoggingConfig));
     this.configSource           = Preconditions.CheckNotNull(configSource, nameof(configSource));
     this.combinedConfigProvider = Preconditions.CheckNotNull(combinedConfigProvider, nameof(combinedConfigProvider));
 }
 public bool Equals(DockerLoggingConfig other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(this.ConfigEquals(this.Config, other.Config) &&
            string.Equals(this.Type, other.Type));
 }