Ejemplo n.º 1
0
        public async Task SetIdAsync(RouteBinding routeBinding, string name)
        {
            if (routeBinding == null)
            {
                new ArgumentNullException(nameof(routeBinding));
            }
            if (name == null)
            {
                new ArgumentNullException(nameof(name));
            }

            Id = await IdFormatAsync(routeBinding, name);
        }
Ejemplo n.º 2
0
        public static async Task <string> IdFormat(RouteBinding routeBinding, string name)
        {
            if (routeBinding == null)
            {
                new ArgumentNullException(nameof(routeBinding));
            }
            if (name == null)
            {
                new ArgumentNullException(nameof(name));
            }

            var idKey = new IdKey
            {
                TenantName = routeBinding.TenantName,
                TrackName  = name,
            };

            return(await IdFormat(idKey));
        }