public void Regist(IServiceCollection services, List <HttpAction> list) { foreach (var action in list) { string[] block = (action.PathPattern).Split('/'); _rootNode.Add(block, 0, action); services.AddScoped(action.ControllerType); } }