public AmqpConsumerFactory(ISendHandler sendHandler, IDokumentlagerHandler dokumentlagerHandler, KontoConfiguration kontoConfiguration) { _dokumentlagerHandler = dokumentlagerHandler; _fileWriter = new FileWriter(); _decrypter = new AsicDecrypter(DecryptionService.Create(kontoConfiguration.PrivatNokkel)); _sendHandler = sendHandler; _accountId = kontoConfiguration.KontoId; }
public SendMsgService(IPushSendProcessService pushSendProcessService , ITimeOutHandler timeOutHandler , IRetryTimesOverHandler retryTimesOverHandler , ISendHandler sendHandler , IMapper mapper) { _pushSendProcessService = pushSendProcessService; _timeOutHandler = timeOutHandler; _retryTimesOverHandler = retryTimesOverHandler; _sendHandler = sendHandler; _mapper = mapper; }
public AmqpReceiveConsumer( IModel model, IDokumentlagerHandler dokumentlagerHandler, IFileWriter fileWriter, IAsicDecrypter decrypter, ISendHandler sendHandler, Guid accountId) : base(model) { _dokumentlagerHandler = dokumentlagerHandler; _fileWriter = fileWriter; _decrypter = decrypter; _sendHandler = sendHandler; _accountId = accountId; }
internal FiksIOClient( FiksIOConfiguration configuration, ICatalogHandler catalogHandler = null, IMaskinportenClient maskinportenClient = null, ISendHandler sendHandler = null, IDokumentlagerHandler dokumentlagerHandler = null, IAmqpHandler amqpHandler = null, HttpClient httpClient = null, IPublicKeyProvider publicKeyProvider = null) { KontoId = configuration.KontoConfiguration.KontoId; maskinportenClient = maskinportenClient ?? new MaskinportenClient(configuration.MaskinportenConfiguration, httpClient); _catalogHandler = catalogHandler ?? new CatalogHandler( configuration.KatalogConfiguration, configuration.IntegrasjonConfiguration, maskinportenClient, httpClient); _publicKeyProvider = publicKeyProvider ?? new CatalogPublicKeyProvider(_catalogHandler); var asicEncrypter = new AsicEncrypter(new AsiceBuilderFactory(), new EncryptionServiceFactory()); _sendHandler = sendHandler ?? new SendHandler( _catalogHandler, maskinportenClient, configuration.FiksIOSenderConfiguration, configuration.IntegrasjonConfiguration, httpClient, asicEncrypter, _publicKeyProvider); _dokumentlagerHandler = dokumentlagerHandler ?? new DokumentlagerHandler( configuration.DokumentlagerConfiguration, configuration.IntegrasjonConfiguration, maskinportenClient, httpClient: httpClient); _amqpHandler = amqpHandler ?? new AmqpHandler( maskinportenClient, _sendHandler, _dokumentlagerHandler, configuration.AmqpConfiguration, configuration.IntegrasjonConfiguration, configuration.KontoConfiguration); }
internal AmqpHandler( IMaskinportenClient maskinportenClient, ISendHandler sendHandler, IDokumentlagerHandler dokumentlagerHandler, AmqpConfiguration amqpConfiguration, IntegrasjonConfiguration integrasjonConfiguration, KontoConfiguration kontoConfiguration, IConnectionFactory connectionFactory = null, IAmqpConsumerFactory consumerFactory = null) { this.sslOption = amqpConfiguration.SslOption ?? new SslOption(); this.maskinportenClient = maskinportenClient; this.kontoConfiguration = kontoConfiguration; this.connectionFactory = connectionFactory ?? new ConnectionFactory(); SetupConnectionFactory(integrasjonConfiguration); this.channel = ConnectToChannel(amqpConfiguration); this.amqpConsumerFactory = consumerFactory ?? new AmqpConsumerFactory(sendHandler, dokumentlagerHandler, this.kontoConfiguration); }
public SvarSender(ISendHandler sendHandler, MottattMelding mottattMelding, Action ack) { _sendHandler = sendHandler; _mottattMelding = mottattMelding; _ack = ack; }
public SvarSender(ISendHandler sendHandler, MottattMelding mottattMelding, IAmqpAcknowledgeManager amqpAcknowledgeManager) { _sendHandler = sendHandler; _mottattMelding = mottattMelding; _amqpAcknowledgeManager = amqpAcknowledgeManager; }