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