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

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

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