예제 #1
0
        private static void Main(string[] args)
        {
            var api    = RestService.For <ISomeApiClient>("http://localhost/concurency/api");
            var mapper = new MapperConfiguration(expression => expression.AddProfile(new DtoMappings())).CreateMapper();
            var s      = new SomeService(api, mapper);
            var m      = s.Get(0);

            Debug.WriteLine(m.ETag);

            s.Update(m);
        }