Ejemplo n.º 1
0
        public static async Task <T> CreateAsync <T>(string host)
        {
            var type = await RuntimeAssemblyPool.GetTypeAsync <T>(host);

            return((T)Activator.CreateInstance(type));
        }
Ejemplo n.º 2
0
        public static T Create <T>(string host)
        {
            var type = RuntimeAssemblyPool.GetType <T>(host);

            return((T)Activator.CreateInstance(type));
        }