Skip to content

Commit

Permalink
Fix client name
Browse files Browse the repository at this point in the history
  • Loading branch information
phillip-haydon committed Nov 29, 2024
1 parent 50c3706 commit 23cd04d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions Mindscape.Raygun4Net.Core/Messages/RaygunClientMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ public class RaygunClientMessage
{
public RaygunClientMessage()
{
object[] attributes = GetType().Assembly.GetCustomAttributes(typeof(AssemblyTitleAttribute), false);
Name = attributes.Length > 0 ? ((AssemblyTitleAttribute)attributes[0]).Title : "Raygun4Net";
Name = "Raygun4Net";
Version = new AssemblyName(GetType().Assembly.FullName).Version.ToString();
ClientUrl = @"https://github.com/MindscapeHQ/raygun4net";
}
Expand All @@ -22,7 +21,7 @@ public override string ToString()
{
// This exists because Reflection in Xamarin can't seem to obtain the Getter methods unless the getter is used somewhere in the code.
// The getter of all properties is required to serialize the Raygun messages to JSON.
return string.Format("[RaygunClientMessage: Name={0}, Version={1}, ClientUrl={2}]", Name, Version, ClientUrl);
return $"[RaygunClientMessage: Name={Name}, Version={Version}, ClientUrl={ClientUrl}]";
}
}
}

0 comments on commit 23cd04d

Please sign in to comment.