Example #1
0
        static async Task AsyncMain()
        {
            var service = new CatsService("https://api.thecatapi.com");
            var results = await service.Search("bengal");

            Log.Debug("{results}", results);
        }
Example #2
0
        static async Task Main(string[] args)
        {
            Log.Logger = new LoggerConfiguration()
                         .WriteTo.Console()
                         .MinimumLevel.Verbose()
                         .CreateLogger();

            var service = new CatsService(new Uri("https://api.thecatapi.com"));
            var results = await service.Search("bengal");

            Log.Debug("{results}", results);
        }