Пример #1
0
        public static string GenerateUuid(string interfaceName)
        {
            var salt = new Guid("8DEBAF20-F852-4B20-BE55-4D7EA6DE19BE");

            var name = "Microsoft.Graphics.Canvas.Effects." + interfaceName;
            var uuid = UuidHelper.GetVersion5Uuid(salt, name);

            return(uuid.ToString().ToUpper());
        }
Пример #2
0
        // Register effect uuids. These are generated by hashing the interface name following RFC 4122.
        private static void RegisterUuids(List <Effects.Effect> effects)
        {
            var salt = new Guid("8DEBAF20-F852-4B20-BE55-4D7EA6DE19BE");

            foreach (var effect in effects)
            {
                var name = "Microsoft.Graphics.Canvas.Effects." + effect.InterfaceName;
                var uuid = UuidHelper.GetVersion5Uuid(salt, name);
                effect.Uuid = uuid.ToString().ToUpper();
            }
        }