Microsoft.AspNet.SignalR.OwinEnvironmentExtensions.IsDebugEnabled C# (CSharp) Method

IsDebugEnabled() static private method

static private IsDebugEnabled ( object>.this environment ) : bool
environment object>.this
return bool
        internal static bool IsDebugEnabled(this IDictionary<string, object> environment)
        {
            object value;
            if (environment.TryGetValue(OwinConstants.HostAppModeKey, out value))
            {
                var stringVal = value as string;
                return !String.IsNullOrWhiteSpace(stringVal) &&
                       OwinConstants.AppModeDevelopment.Equals(stringVal, StringComparison.OrdinalIgnoreCase);
            }

            return false;
        }