public BreezeController(ICommunitiesService communities, IProposalService proposals, IInvitationService invitations, ITaxesService taxes) { this.communities = communities; this.proposals = proposals; this.invitations = invitations; this.taxes = taxes; }
public ProposalController(ILogger <ProposalController> logger, IConferenceService conferenceService, IProposalService proposalService, IDataProtectionProvider protectionProvider, PurposeStringConstants purposeStringConstants) { protector = protectionProvider.CreateProtector(purposeStringConstants.ConferenceIdQueryString); this.logger = logger; this.conferenceService = conferenceService; this.proposalService = proposalService; }
public ProposalApprovalTransactionGenerator(IProposalService proposalService, ISmartContractAddressService smartContractAddressService, IOptionsMonitor <TransactionPackingOptions> transactionPackingOptions) { _proposalService = proposalService; _smartContractAddressService = smartContractAddressService; _transactionPackingOptions = transactionPackingOptions.CurrentValue; Logger = NullLogger <ProposalApprovalTransactionGenerator> .Instance; }
public ProposalController( IProposalService proposalService, IOrganizationCustomer customer, IProposalPDFService proposalPdfService, IServiceProvider serviceProvider) : base(serviceProvider) { _customer = customer; _proposalService = proposalService; _proposalPdfService = proposalPdfService; }
public ProposalApprovalTransactionGenerator(IProposalService proposalService, ISmartContractAddressService smartContractAddressService, ITransactionPackingOptionProvider transactionPackingOptionProvider) { _proposalService = proposalService; _smartContractAddressService = smartContractAddressService; _transactionPackingOptionProvider = transactionPackingOptionProvider; Logger = NullLogger <ProposalApprovalTransactionGenerator> .Instance; }
public ProposalController( IAgencyOwner agencyOwner, IProposalService proposalService, IProviderAgencyOwner providerAgencyOwner, IProposalPDFService proposalPdfService, IServiceProvider provider) : base(provider) { _agencyOwner = agencyOwner; _proposalService = proposalService; _providerAgencyOwner = providerAgencyOwner; _proposalPdfService = proposalPdfService; }
public ServerService(IUserService userservice, IUserConferenceService userconferenceservice, IAdminConferenceService adminconferenceservice, ITicketService ticketservice, IEmailService emailservice, IProposalService propservice, EnumGetDataService enumservice, IReviewService reviewService, ISectionService sectionService) { _userService = userservice; _userConferenceService = userconferenceservice; _adminConferenceService = adminconferenceservice; _ticketService = ticketservice; _emailService = emailservice; _proposalService = propservice; _enumService = enumservice; _reviewService = reviewService; _sectionService = sectionService; }
public ServiceResult SaveProposalFile([FromServices] IProposalService proposalService, [FromRoute] int id, [FromBody] ICollection <IFormFile> files) { var file = files.FirstOrDefault(); var totalSize = file.Length; var filePath = Path.GetTempFileName(); using (var stream = new FileStream(filePath, FileMode.Create)) file.CopyTo(stream); var result = proposalService.SaveProposalFile(new SaveProposalFileMessage() { ProposalID = id, FilePath = filePath, }); return(result); }
public async Task InvokeAsync(HttpContext httpContext, IProposalService proposalService) { try { if (httpContext.Request.Path.Value == "/Home/GetProposal") { var jsonRequestString = await FormatRequest(httpContext.Request); AddProposalLogRequest addLogRequest = JsonConvert.DeserializeObject <AddProposalLogRequest>(jsonRequestString); var addLogResult = await proposalService.Add(addLogRequest); var originalBodyStream = httpContext.Response.Body; using (var responseBody = new MemoryStream()) { httpContext.Response.Body = responseBody; await _next(httpContext); var jsonResponseString = await FormatResponse(httpContext.Response); var response = JsonConvert.DeserializeObject <GetProposalResponse>(jsonResponseString); var updateLogRequest = new UpdateProposalLogRequest { Id = addLogResult.Data.Id, Response = JsonConvert.SerializeObject(response) }; await proposalService.Update(updateLogRequest); await responseBody.CopyToAsync(originalBodyStream); } } else { await _next(httpContext); } } catch (Exception e) { //await HandleExceptionAsync(httpContext, e); } }
public ServiceResult GetProposal([FromServices] IProposalService proposalService, int id) { var result = proposalService.Get(id); return(Mapper.Map <ServiceResult <ProposalViewModel> >(result)); }
public ServiceResult SaveProposal([FromServices] IProposalService proposalService, SaveProposalRequest request) { var message = Mapper.Map <SaveProposalMessage>(request); return(proposalService.Save(message)); }
public ProposalsController(IProposalService proposalService, IMappingService mappingService, ICommunitiesService communityService) { this.proposalService = proposalService; this.mappingService = mappingService; this.communityService = communityService; }
public ProposalController(IConferenceService conferenceService, IProposalService proposalService) { _conferenceService = conferenceService; _proposalService = proposalService; }
public AddProposalModel(IProposalService proposalService) { this.proposalService = proposalService; }
public NewIrreversibleBlockFoundEventHandler(IProposalService proposalService) { _proposalService = proposalService; }
public ProposalsController(IProposalService proposalService) { this.proposalService = proposalService; }
public void SetPaperService(IProposalService service) { _proposalService = service; }
public ProposalListModel(IProposalService proposalService) { this.proposalService = proposalService; }
public ProposalsController(IEmployerService employerService, IProposalService proposalService, IMapper mapper) { _employerService = employerService; _proposalService = proposalService; _mapper = mapper; }
public ProposalController(IProposalService IproposalService) { _iProposalService = IproposalService; }
public ProposalsController(IProposalService proposalService, IClientService clientService) { _proposalService = proposalService; _clientService = clientService; }
public ProposalServiceTests() { _proposalService = GetRequiredService <IProposalService>(); _proposalTestHelper = GetRequiredService <ProposalTestHelper>(); }
public ServiceResult DeleteProposal([FromServices] IProposalService proposalService, int id) { var result = proposalService.Delete(id); return(result); }
public ConceptController(IProposalService proposalService) { _proposalService = proposalService; }
public UserController(IUserService userService, IJobService jobService, IProposalService proposalService) { this.userService = userService; this.jobService = this.jobService = jobService; this.proposalService = proposalService; }
public ProposalController(IConferenceService conferenceService, IProposalService proposalService) { this.conferenceService = conferenceService; this.proposalService = proposalService; }
public ProposalController(IConferenceService conferenceService, IProposalService proposalService, IDataProtectionProvider dataProtProvider, PurposeKeys purposeKeys) { _dataProtector = dataProtProvider.CreateProtector(purposeKeys.ConferenceIdKey); this.conferenceService = conferenceService; this.proposalService = proposalService; }
public ProposalsController(IMapper mapper, IProposalService proposalService) { this.mapper = mapper; this.proposalService = proposalService; }
public CrossChainIndexingDataProposedLogEventProcessor(ISmartContractAddressService smartContractAddressService, ICrossChainIndexingDataValidationService crossChainIndexingDataValidationService, IProposalService proposalService) { _smartContractAddressService = smartContractAddressService; _crossChainIndexingDataValidationService = crossChainIndexingDataValidationService; _proposalService = proposalService; }
public ProposalController(IProposalService proposalService) { _proposalService = proposalService; }
public void SetUp() { _service = new ProposalService(AutoMapperConfig.Initialize()); }
public CodeCheckRequiredLogEventProcessor(ISmartContractAddressService smartContractAddressService, ICodeCheckService codeCheckService, IProposalService proposalService) { _smartContractAddressService = smartContractAddressService; _codeCheckService = codeCheckService; _proposalService = proposalService; }