public Assembly GetAssembly(bool useMetadataLoadContext) { Assembly loadedAssemly = null; if (useMetadataLoadContext) { if (!string.IsNullOrWhiteSpace(AssemblyToReflectFilePath)) { loadedAssemly = MetaCtx.LoadFromAssemblyPath(AssemblyToReflectFilePath); } else { UtilLogger.LogInfo(MetaCtx.ToString()); } } else { loadedAssemly = Assembly.LoadFrom(AssemblyToReflectFilePath); } return(loadedAssemly); }
public ReflectionService() { UtilLogger.LogInfo(MessageImportance.Low, MetaCtx.ToString()); }