2020-09-28 21:32:53 -04:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace SharedLibraryCore.Interfaces
|
2020-09-26 19:13:56 -04:00
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// interface used to dynamically resolve services by string name
|
|
|
|
|
/// </summary>
|
|
|
|
|
public interface IScriptPluginServiceResolver
|
|
|
|
|
{
|
2020-09-28 21:32:53 -04:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// resolves a service with the given name
|
|
|
|
|
/// </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>
|
|
|
|
|
/// resolves a service with the given name and generic params
|
|
|
|
|
/// </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
|
|
|
|
}
|
|
|
|
|
}
|