public static async Task <T> CreateAsync <T>(string host) { var type = await RuntimeAssemblyPool.GetTypeAsync <T>(host); return((T)Activator.CreateInstance(type)); }
public static T Create <T>(string host) { var type = RuntimeAssemblyPool.GetType <T>(host); return((T)Activator.CreateInstance(type)); }