5.5Synchronous and Asynchronous Methods
Created on Aug 17, 2026~1 min read
In the declarative request interface method definitions of IHttpService, we provide both the implementation of asynchronous methods and support for defining synchronous methods. For example:
public interface IHttpService : IHttpDeclarative{ // Asynchronous request method [Get("https://furion.net/")] Task<string> GetMethodAsync(); // Synchronous request method [Get("https://furion.net/")] string GetMethod();}