Ejemplo n.º 1
0
        public async Task SetIdAsync(Track.IdKey idKey)
        {
            if (idKey == null)
            {
                new ArgumentNullException(nameof(idKey));
            }

            Id = await IdFormat(idKey);
        }
Ejemplo n.º 2
0
        public static async Task <string> IdFormat(Track.IdKey idKey)
        {
            if (idKey == null)
            {
                new ArgumentNullException(nameof(idKey));
            }
            await idKey.ValidateObjectAsync();

            return($"claimmap:{idKey.TenantName}:{idKey.TrackName}");
        }
Ejemplo n.º 3
0
 public static string PartitionIdFormat(Track.IdKey idKey) => $"{idKey.TenantName}:{idKey.TrackName}";