/// <summary> /// Sets the request context data associated with the service request. /// </summary> public static void SetRequestContextData( ) { string culture = GetCurrentCulture( ); string timeZone = GetClientTimeZone( ); // Get the original context (set by the custom username validator) AppRequestContext requestContext = AppRequestContext.GetContext( ); if (requestContext != null) { // Extend the original context with culture information AppRequestContext.SetContext(requestContext.Identity, requestContext.Tenant, culture, timeZone); } }
/// <summary> /// Sets the request context data associated with the service request. /// </summary> internal static void SetRequestContextData(RequestContextData contextData) { AppRequestContext.SetContext(contextData); }