Beispiel #1
0
 /// <summary>
 ///     Determines whether the specified request can be resolved.
 /// </summary>
 /// <param name="service">The specified service type.</param>
 /// <param name="name">The specified binding name.</param>
 /// <returns>
 ///     <c>True</c> if the specified service has been resolved; otherwise, <c>false</c>.
 /// </returns>
 public bool CanResolve(Type service, string name = null)
 {
     Should.NotBeNull(service, "service");
     if (IsDisposed)
     {
         return(false);
     }
     if (name == null)
     {
         return(_injector.CanResolve(service, true, false));
     }
     return(_injector.CanResolve(service, name, true, false));
 }