sdk/dotnet/src/Microsoft.Datasync.Client/Utils/Platform.cs
/// <summary>
/// Retrieve the application installation ID, creating one if it doesn't exist.
/// </summary>
Retrieve the application installation ID, creating one if it doesn't exist.
Retrieve the application installation ID creating one if it doesn ' t exist .
internal static string GetApplicationInstallationId()
        {
            if (Instance.ApplicationStorage.TryGetValue(InstallationIdKey, out string installationId))
            {
                return installationId;
            }
            string newId = Guid.NewGuid().ToString();
            Instance.ApplicationStorage.SetValue(InstallationIdKey, newId);
            return newId;
        }
internal static string GetApplicationInstallationId ( ) { if ( Instance . ApplicationStorage . TryGetValue ( InstallationIdKey , out string installationId ) ) { return installationId ; } string newId = Guid . NewGuid ( ) . ToString ( ) ; Instance . ApplicationStorage . SetValue ( InstallationIdKey , newId ) ; return newId ; }
Retrieve the application installation ID, creating one if it doesn't exist.
Retrieve the application installation ID creating one if it doesn ' t exist .