Example #1
0
        // ReSharper restore MemberCanBePrivate.Global
        // ReSharper restore UnusedAutoPropertyAccessor.Global

        internal Deployment(IDictionary<string, string> environmenVariables)
        {
            Command = environmenVariables.TryGetString("command");
            Source = environmenVariables.TryParseDirectoryPath("DEPLOYMENT_SOURCE");
            Target = environmenVariables.TryParseDirectoryPath("DEPLOYMENT_TARGET");
            Temp = environmenVariables.TryParseDirectoryPath("DEPLOYMENT_TEMP");
            NextManifest = environmenVariables.TryParseFilePath("NEXT_MANIFEST_PATH");
            PreviousManifest = environmenVariables.TryParseFilePath("PREVIOUS_MANIFEST_PATH");
        }
Example #2
0
        // ReSharper restore MemberCanBePrivate.Global
        // ReSharper restore UnusedAutoPropertyAccessor.Global

        internal WebSite(IDictionary<string, string> environmenVariables)
        {
            WebRoot = environmenVariables.TryParseDirectoryPath("WEBROOT_PATH");
            AuthEnabled = environmenVariables.TryParseBool("WEBSITE_AUTH_ENABLED");
            ComputeMode = environmenVariables.TryGetString("WEBSITE_COMPUTE_MODE");
            HostName = environmenVariables.TryGetString("WEBSITE_HOSTNAME");
            HttpLoggingEnabled = environmenVariables.TryParseBool("WEBSITE_HTTPLOGGING_ENABLED");
            IISSiteName = environmenVariables.TryGetString("WEBSITE_IIS_SITE_NAME");
            InstanceId = environmenVariables.TryGetString("WEBSITE_INSTANCE_ID");
            NodeDefaulVersion = environmenVariables.TryGetString("WEBSITE_NODE_DEFAULT_VERSION");
            OwnerName = environmenVariables.TryGetString("WEBSITE_HOSTNAMEEBSITE_OWNER_NAME");
            AlwaysOnEnabled = environmenVariables.TryParseBool("WEBSITE_SCM_ALWAYS_ON_ENABLED");
            Mode = environmenVariables.TryGetString("WEBSITE_SITE_MODE");
            Name = environmenVariables.TryGetString("WEBSITE_SITE_NAME");
            SKU = environmenVariables.TryGetString("WEBSITE_SKU");
            Region = environmenVariables.TryGetString("REGION_NAME");
        }