IDependencyService - markjulmar/xamu-infrastructure GitHub Wiki
The IDependencyService interface is a simple representation of a Service Locator.
-
Get<T>: returns aTobject.
/// <summary>
/// Interface to wrap a ServiceLocator
/// </summary>
public interface IDependencyService
{
/// <summary>
/// Retrieve a specific implementation from the locator.
/// </summary>
/// <typeparam name="T">Type to look for</typeparam>
T Get<T>() where T : class;
}