/// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="apiControllerBuilder">Reference to the <see cref="ApiControllerBuilder{T}"/> which created this object</param>
 /// <param name="methodInfo">Method</param>
 /// <param name="iocResolver"></param>
 public ApiControllerActionBuilder(ApiControllerBuilder <T> apiControllerBuilder, MethodInfo methodInfo, IIocResolver iocResolver)
 {
     _controller  = apiControllerBuilder;
     _iocResolver = iocResolver;
     Method       = methodInfo;
     ActionName   = GetNormalizedActionName();
 }
 /// <summary>
 /// Creates a new <see cref="ApiControllerActionBuilder{T}"/> object.
 /// </summary>
 /// <param name="apiControllerBuilder">Reference to the <see cref="ApiControllerBuilder{T}"/> which created this object</param>
 /// <param name="methodInfo"> </param>
 public ApiControllerActionBuilder(ApiControllerBuilder <T> apiControllerBuilder, MethodInfo methodInfo)
 {
     _controllerBuilder = apiControllerBuilder;
     _methodInfo        = methodInfo;
     ActionName         = _methodInfo.Name;
 }
예제 #3
0
 /// <summary>
 /// Creates a new <see cref="ApiControllerActionBuilder{T,TTenantId, TUserId}"/> object.
 /// </summary>
 /// <param name="apiControllerBuilder">Reference to the <see cref="ApiControllerBuilder{T,TTenantId, TUserId}"/> which created this object</param>
 /// <param name="methodInfo"> </param>
 public ApiControllerActionBuilder(ApiControllerBuilder <T, TTenantId, TUserId> apiControllerBuilder, MethodInfo methodInfo)
 {
     _controllerBuilder = apiControllerBuilder;
     _methodInfo        = methodInfo;
     ActionName         = _methodInfo.Name;
 }