Skip to content
This repository was archived by the owner on Aug 27, 2020. It is now read-only.

IDependencyService

Mark Smith edited this page Aug 29, 2016 · 4 revisions

IDependencyService

The IDependencyService interface is a simple representation of a Service Locator.

Methods

  • Get<T> : returns a T object.
/// <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;
}
Clone this wiki locally