-
Notifications
You must be signed in to change notification settings - Fork 127
Open
Labels
FastAGIIssue specific to AGI.Issue specific to AGI.
Description
If I understand correctly, a class which implements abstract class AGIScript will be created at runtime via Reflection.
this is the code in GeneralMappingStrategy.cs uses reflection to create script object:
public AGIScript CreateInstance()
{
AGIScript rtn = null;
try
{
if (LoadedAssembly != null)
rtn = (AGIScript)LoadedAssembly.CreateInstance(ClassName);
else
rtn = (AGIScript)Assembly.GetEntryAssembly().CreateInstance(ClassName);
}
catch (Exception ex)
{
}
return rtn;
}
I want to create a script object by myself or use dependency injection technique, because my script class can be depended on another dependencies.
Is it possible?
Thanks in advanced.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
FastAGIIssue specific to AGI.Issue specific to AGI.