예제 #1
0
        public async Task <string> CreateHasteOrGist(string code)
        {
            var createHaste = _request.CreateHaste(code);
            var createGist  = _request.CreateGist(code);
            var result      = await createHaste.TimeoutAndFallback(TimeSpan.FromSeconds(15), createGist);

            return(result);
        }