示例#1
0
        internal AshxEndpointDataSource(AshxBuilder builder)
        {
            _AshxBuilder = builder;

            //_configureRoutes = configureRoutes;

            _endpointBuilders = new();

            //if (_configureRoutes == null) throw new ArgumentNullException(nameof(configureRoutes));

            // 获取当前动态配置的路由模式
            //_AshxBuilder.RegisterAshxRoute(this);

            //_configureRoutes(this);
        }
示例#2
0
 /// <summary>初始化类的新实例。<see cref="AshxRouteHandler" /></summary>
 public AshxRouteHandler(AshxBuilder AshxBuilder)
 {
     this.AshxBuilder = AshxBuilder;
 }