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

GetAppInstanceName() static private method

static private GetAppInstanceName ( object>.this environment ) : string
environment object>.this
return string
        internal static string GetAppInstanceName(this IDictionary<string, object> environment)
        {
            object value;
            if (environment.TryGetValue(OwinConstants.HostAppNameKey, out value))
            {
                var stringVal = value as string;

                if (!String.IsNullOrEmpty(stringVal))
                {
                    return stringVal;
                }
            }

            return null;
        }