using System; namespace Blue { /// /// 查询句柄的接口 /// 同步+异步查询 /// public interface IQueryHandler { /// /// 同步查询 /// R DoQuery() where Q:IQuery,new(); /// /// 同步查询 /// R DoQuery(IQuery query); /// /// 异步查询 /// IQueryResult DoQueryAsync(IQuery query); /// /// 异步查询 /// IQueryResult DoQueryAsync() where Q:IQuery,new(); } }
() where Q:IQuery,new(); /// /// 同步查询 /// R DoQuery(IQuery query); /// /// 异步查询 /// IQueryResult DoQueryAsync(IQuery query); /// /// 异步查询 /// IQueryResult DoQueryAsync() where Q:IQuery,new(); } }
() where Q:IQuery,new(); } }