-
Notifications
You must be signed in to change notification settings - Fork 167
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for user agents #1819
Conversation
Hey - looks like you forgot to add a T:* label - could you please add one? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
internal SyncConfigurationBase(Uri serverUri, User user = null, string optionalPath = null) | ||
{ | ||
RealmPCLHelpers.ThrowProxyShouldNeverBeUsed(); | ||
} | ||
|
||
/// <summary> | ||
/// Gets or sets a value indicating how detailed the sync client's logs will be. | ||
/// Configures various parameters of the sync . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Summary doesn't look right.
@@ -108,12 +142,29 @@ internal SyncConfigurationBase(Uri serverUri, User user = null, string optionalP | |||
} | |||
|
|||
/// <summary> | |||
/// Gets or sets a value indicating how detailed the sync client's logs will be. | |||
/// Configures various parameters of the sync . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
internal static string GetSDKUserAgent() | ||
{ | ||
var version = typeof(SyncConfigurationBase).GetTypeInfo().Assembly.GetName().Version; | ||
return $"RealmNet/{version} ({RuntimeInformation.FrameworkDescription})"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about RealmDotNet?
7ed09da
to
0eb21b4
Compare
0eb21b4
to
e26a8af
Compare
* master: (89 commits) Prepare for 4.0.1 (#1876) Fix iOS device builds (#1875) Prepare for 4.0.0 (#1868) Refactor packaging (#1849) Update CHANGELOG.md (#1828) Add session.stop/start methods (#1839) Prepare for 3.4.0 (#1826) Ensure GetInstanceAsync works with QBS config (#1827) Add ability to define custom log function (#1824) Add support for user agents (#1819) Bump Sync to 3.10.1 (#1772) Update ISSUE_TEMPLATE.md Release 3.3.0 (#1808) Expose SyncConfiguration.OnProgress (#1807) Throw an error when trying to call async subscription methods on background threads (#1783) Update CHANGELOG.md (#1777) Prepare for 3.2.1 (#1775) Fix subscription state size (#1774) Release 3.2.0 (#1769) Add ShouldCompactOnLaunch to the PCL RealmConfig (#1768) ... # Conflicts: # Platform.PCL/Realm.PCL/Extensions/CollectionNotificationsExtensionsPCL.cs # Tests/Tests.Shared/CollectionTests.cs
Description
Based on #1772 - rebase after merging it.
Fixes #1809
Here's example logs in ROS:
from iOS simulator
from .NET Core running on macOS
MergeByPKTests
is the custom user agent specified by the user..NET doesn't have an automatic way of detecting the app name because some of the platforms we support don't have a concept of an app name - e.g. .NET Core and Windows apps, so it's up to the user to set the
UserAgent
to the app name/version.TODO