IW4M-Admin/SharedLibraryCore/Interfaces/IScriptPluginServiceResolver.cs

23 lines
836 B
C#
Raw Normal View History

2022-01-26 11:32:16 -05:00
namespace SharedLibraryCore.Interfaces
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// interface used to dynamically resolve services by string name
/// </summary>
public interface IScriptPluginServiceResolver
{
/// <summary>
2022-01-26 11:32:16 -05:00
/// resolves a service with the given name
/// </summary>
/// <param name="serviceName">class name of service</param>
/// <returns></returns>
object ResolveService(string serviceName);
/// <summary>
2022-01-26 11:32:16 -05:00
/// 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);
}
2022-01-26 11:32:16 -05:00
}