예제 #1
0
파일: Program.cs 프로젝트: bcen/EncodingApi
        public static void Main(string[] args)
        {
            EncodingServiceClient client = new EncodingServiceClient("id", "key");

            try
            {
                foreach (var m in client.GetMediaList())
                {
                    Console.WriteLine(m.MediaId);
                }
            }
            catch (EncodingServiceException ex)
            {
                Console.WriteLine(ex.Message);
            }

            client.GetMediaListAsync((mediaList) =>
            {
                foreach (var m in mediaList)
                {
                    Console.WriteLine(m.MediaId);
                }
            }, (errors) =>
            {
                foreach (string msg in errors)
                {
                    Console.WriteLine(msg);
                }
            });

            Console.WriteLine("Done");
            Console.ReadKey();
        }
예제 #2
0
 public void Dispose()
 {
     client = null;
 }
예제 #3
0
 public EncodingServiceClientTest()
 {
     client = new EncodingServiceClient("id", "key");
 }