Example #1
0
 private static async Task Main(string[] args)
 {
     var app = CodeConvert.ForType <StaticMethods>()
               .ForType <AsyncStaticMethods>()
               .ForType <InstanceTestClass>()
               .WithInstanceCreator(InstanceProvider)
               .CreateConsoleApplication();
     await app.RunAsync(args);
 }
Example #2
0
        private static Task RunCommand(string command)
        {
            var commandRunner = CodeConvert.ForType <StaticMethods>()
                                .ForType <AsyncStaticMethods>()
                                .ForType <InstanceTestClass>()
                                .WithInstanceCreator(InstanceProvider)
                                .CreateRunner();

            return(commandRunner.RunCommandAsync(command));
        }