Exemple #1
0
        internal EngineScope(DockerUri host, EngineScopeType scope, ICertificatePaths certificates = null)
        {
            Scope         = scope;
            _host         = host;
            _certificates = certificates;

            _original = host.IsWindowsEngine(certificates) ? EngineScopeType.Windows : EngineScopeType.Linux;

            if (scope == _original)
            {
                return;
            }

            SwitchToScope(Scope);
        }