Example #1
0
        public static async Task GetByBadgeNumber(XprtService.XprtServiceClient client)
        {
            var res = await client.GetByBadgeNumberAsync(new Messages.GetByBadgeNumberRequest()
            {
                BadgeNumber = 2080
            });

            Console.WriteLine(res.Xprt);
        }
Example #2
0
        public static async Task SendMetadataAsync(XprtService.XprtServiceClient client)
        {
            Metadata md = new Metadata();

            md.Add("username", "svantilborg");
            md.Add("password", "password1");
            try
            {
                await client.GetByBadgeNumberAsync(new Messages.GetByBadgeNumberRequest(), md);
            }
            catch (Exception e)
            {
                // Just swallow the expected exception
            }
        }