RegisterExtension() публичный Метод

public RegisterExtension ( string objectId, string body ) : Task
objectId string
body string
Результат Task
Пример #1
0
        private static void RegisterExtensionAttribute(string[] args)
        {
            if (args.Length < 3)
            {
                Console.ForegroundColor = ConsoleColor.Red;
                Console.WriteLine("Please include the b2c-extensions-app objectId and a path to a .json file.  Run B2CGraphShell Syntax to see examples.");
                Console.ForegroundColor = init;
                return;
            }

            string json      = File.ReadAllText(args[2]);
            object formatted = JsonConvert.DeserializeObject(client.RegisterExtension(args[1], json).Result);

            Console.ForegroundColor = ConsoleColor.White;
            Console.WriteLine(JsonConvert.SerializeObject(formatted, Formatting.Indented));
        }