2022-01-26 11:32:16 -05:00
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
2020-09-26 19:13:56 -04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// interface used to dynamically resolve services by string name
|
2020-09-26 19:13:56 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IScriptPluginServiceResolver
|
|
|
|
|
{
|
2020-09-28 21:32:53 -04:00
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// resolves a service with the given name
|
2020-09-28 21:32:53 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="serviceName">class name of service</param>
|
|
|
|
|
/// <returns></returns>
|
2020-09-26 19:13:56 -04:00
|
|
|
|
object ResolveService(string serviceName);
|
2020-09-28 21:32:53 -04:00
|
|
|
|
|
|
|
|
|
/// <summary>
|
2022-01-26 11:32:16 -05:00
|
|
|
|
/// resolves a service with the given name and generic params
|
2020-09-28 21:32:53 -04:00
|
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="serviceName">class name of service</param>
|
|
|
|
|
/// <param name="genericParams">generic class names</param>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
object ResolveService(string serviceName, string[] genericParameters);
|
2020-09-26 19:13:56 -04:00
|
|
|
|
}
|
2022-01-26 11:32:16 -05:00
|
|
|
|
}
|