/// <summary> /// Sets the role identifier for the process' app domain. The role identifier field is singleton. /// It is called externally outside TrackingContext to avoid dependancy on Microsoft.WindowsAzure.ServiceRuntime /// </summary> /// <param name="roleIdentifier">the Role id</param> /// <param name="rolePrefix">Prefix for the role component</param> internal static void SetTrackingContextRoleIdentifier(string roleIdentifier, RolePrefix rolePrefix) { // The role identifier field is not set if it already has some value. if (string.IsNullOrEmpty(RoleIdentifier)) { RoleIdentifier = roleIdentifier; AppendRolePrefix = (char)rolePrefix; } }