using Microsoft.AspNetCore.Http; namespace BlueWest.WebApi.Controllers { public static class SessionExtensions { /// /// Check for the session token header /// /// /// public static string GetSessionTokenHeader(this IHeaderDictionary headerDictionary) { if (headerDictionary.ContainsKey(SessionConstants.SessionTokenHeaderName)) { return headerDictionary[SessionConstants.SessionTokenHeaderName]; } return string.Empty; } } }