RestImageResize/Utils/WrapResolver.cs
/// <summary>
/// Tries to resolve service instance.
/// </summary>
/// <typeparam name="TService">The type of the service.</typeparam>
/// <param name="service">The service.</param>
/// <returns></returns>
Tries to resolve service instance.
Tries to resolve service instance .
public bool TryResolve<TService>(out TService service) where TService : class
        {
            object instance;
            if (_services.TryGetValue(typeof(TService), out instance))
            {
                service = (TService)instance;
                return true;
            }
            return _wrappedResolver.TryResolve(out service);
        }
public bool TryResolve < TService > ( out TService service ) where TService : class { object instance ; if ( _services . TryGetValue ( typeof ( TService ) , out instance ) ) { service = ( TService ) instance ; return true ; } return _wrappedResolver . TryResolve ( out service ) ; }
Tries to resolve service instance.
Tries to resolve service instance .
None
TService
out
service
None
typeparam
The type of the service.
The type of the service .