Exemplo n.º 1
0
        public Task <JObject> GetValueAsync([PathVariable("id")] string id)
        {
            Func <Task <JObject> > fallback = new Func <Task <JObject> >(delegate
            {
                return(_testService2.GetValueAsync(id));
            });

            return(GetValueAsync(id, fallback));
        }
        public Task <JObject> GetValueAsync([PathVariable("id")] string id, string text, TestServiceParam param)
        {
            Lazy <Task <JObject> > lazy     = new Lazy <Task <JObject> >();
            Func <Task <JObject> > fallback = new Func <Task <JObject> >(delegate
            {
                return(_testService2.GetValueAsync(int.Parse(id), text, param));
            });

            return(GetValueAsync(id, fallback));
        }