public virtual Task StartAsync(CancellationToken cancellationToken) { var option = HttpApiServer.LoadOptions(); mSettingHandler.Options(option); mHttpServer = new HttpApiServer(option); mHttpServer.ActionFactory.ControllerInstance += (o, e) => { e.Controller = mHttpControllerServiceProvider.GetService(e.Type); }; InitService(); mHttpServer.Open(); return(Task.CompletedTask); }