Exemple #1
0
 /// <summary>
 /// 给与什么服务
 /// </summary>
 /// <param name="service">给与的服务名或别名</param>
 /// <returns>服务绑定数据</returns>
 public TReturn Given(string service)
 {
     Guard.NotEmptyOrNull(service, "service");
     bindable.AddContextual(needs, service);
     return(bindable as TReturn);
 }