public ClientApplicationService ( IPagingParametersAccessor pagingParametersAccessor, IGetClientFromDocumentIdQuery getClientFromDocumentIdQuery, IGetClientFromPartOfNameQuery getClientFromPartOfNameQuery ) { _pagingParametersAccessor = pagingParametersAccessor; _getClientFromDocumentIdQuery = getClientFromDocumentIdQuery; _getClientFromPartOfNameQuery = getClientFromPartOfNameQuery; }
public async Task Invoke(HttpContext context, IPagingParametersAccessor accessor) { StringValues strPage; StringValues strRecordsPerPage; context.Request.Query.TryGetValue(nameof(strPage), out strPage); context.Request.Query.TryGetValue(nameof(strRecordsPerPage), out strRecordsPerPage); accessor.Page = await ConvertAndValidateNumber(strPage, context); accessor.RecordsPerPage = await ConvertAndValidateNumber(strRecordsPerPage, context); await _next(context); }
public CartApplicationService ( ITransactionManager transactionManager, IPagingParametersAccessor pagingParametersAccessor, IAddCartCommand addCartCommand, IGetActiveCartFromClientQuery getActiveCartFromClientQuery, IGetActiveCartsQuery getActiveCartsQuery, IGetCartFromExternalKeyQuery getCartFromExternalKeyQuery, IUpdateCartValueCommand updateCartValueCommand, IDisableCartCommand disableCartCommand ) { _transactionManager = transactionManager; _pagingParametersAccessor = pagingParametersAccessor; _addCartCommand = addCartCommand; _getActiveCartFromClientQuery = getActiveCartFromClientQuery; _getActiveCartsQuery = getActiveCartsQuery; _getCartFromExternalKeyQuery = getCartFromExternalKeyQuery; _updateCartValueCommand = updateCartValueCommand; _disableCartCommand = disableCartCommand; }
public ClientRepository(DatabaseContext context, IPagingParametersAccessor pagingParametersAccessor) { _context = context; _pagingParametersAccessor = pagingParametersAccessor; }