greenshot/GreenshotPlugin/Interfaces/IServiceLocator.cs

15 lines
375 B
C#

using System.Collections.Generic;
namespace GreenshotPlugin.Interfaces
{
public interface IServiceLocator
{
IEnumerable<TService> GetAllInstances<TService>();
TService GetInstance<TService>();
void AddService<TService>(params TService[] services);
void AddService<TService>(IEnumerable<TService> services);
}
}