RestImageResize/Utils/ServiceLocatorUtils.cs
/// <summary>
/// Gets the currently used resolver.
/// </summary>
/// <returns>
/// The resolver instance.
/// </returns>
Gets the currently used resolver.
Gets the currently used resolver .
public static IResolver GetCurrentResolver()
        {
            var currentResolverField = typeof(ServiceLocator).GetField("currentResolver", BindingFlags.Static | BindingFlags.NonPublic);
            if (currentResolverField != null)
            {
                return currentResolverField.GetValue(null) as IResolver;
            }
            return null;
        }
public static IResolver GetCurrentResolver ( ) { var currentResolverField = typeof ( ServiceLocator ) . GetField ( " " , BindingFlags . Static | BindingFlags . NonPublic ) ; if ( currentResolverField != null ) { return currentResolverField . GetValue ( null ) as IResolver ; } return null ; }
Gets the currently used resolver.
Gets the currently used resolver .
The resolver instance.
The resolver instance .