/// <summary>
 /// Gets the LCID of current CRM language. Ex: if current language is en-CA (4105), then 1033 (en-US) will be returned because that is the associated CRM language.
 /// </summary>
 /// <param name="context">Current Owin context.</param>
 /// <returns>LCID of current CRM language.</returns>
 public static int GetCrmLcid(this IOwinContext context)
 {
     return(GetCrmLcid(context?.GetContextLanguageInfo()));
 }
Exemplo n.º 2
0
 public IdentityErrorDescriber(IOwinContext context)
     : this(context.GetContentMapProvider(), context.GetContextLanguageInfo())
 {
 }