Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
terencefan committed Oct 16, 2024
1 parent 5daba98 commit ce5794b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
10 changes: 7 additions & 3 deletions src/Microsoft.Azure.SignalR.Common/Auth/LogHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@ public static Exception LogExceptionMessage(Exception exception)

public static string FormatInvariant(string format, params object[] args)
{
return format == null ? string.Empty :
args == null ? format :
string.Format(CultureInfo.InvariantCulture, format, args);
if (format == null)
return string.Empty;

if (args == null)
return format;

return string.Format(CultureInfo.InvariantCulture, format, args);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ internal partial class MicrosoftEntraAccessKey : AccessKey

private const string DefaultScope = "https://signalr.azure.com/.default";

private const string IngressDenied = "ingress denied the access, please check your Networking settings.";
private const string IngressDenied = "Nginx denied the access, please check your Networking settings.";

private const string RuntimeDenied = "runtime denied the access, please check your Access control (IAM) settings.";
private const string RuntimeDenied = "Azure SignalR service denied the access, please check your Access control (IAM) settings.";

private static readonly TokenRequestContext DefaultRequestContext = new TokenRequestContext(new string[] { DefaultScope });

Expand Down

0 comments on commit ce5794b

Please sign in to comment.