public EmailCommandProducer(IQueueExt queueExt) { _queueExt = queueExt; _queueExt.RegisterTypes( QueueType.Create(new NoRefundDepositDoneData().MessageId(), typeof(QueueRequestModel <SendEmailData <NoRefundDepositDoneData> >)) ); }
public SmsCommandProducer(IQueueExt queueExt) { _queueExt = queueExt; _queueExt.RegisterTypes( QueueType.Create("SmsConfirmMessage", typeof(SendSmsData <SmsConfirmationData>)) ); _queueExt.RegisterTypes( QueueType.Create("SimpleSmsMessage", typeof(SendSmsData <string>)) ); }
public EmailCommandProducer(IQueueExt queueExt) { _queueExt = queueExt; _queueExt.RegisterTypes( QueueType.Create(EmailRequest.WelcomeEmail, typeof(QueueRequestModel <SendEmailData <RegistrationData> >)) ); _queueExt.RegisterTypes( QueueType.Create(EmailRequest.ConfirmationEmail, typeof(QueueRequestModel <SendEmailData <EmailComfirmationData> >)) ); }
public EmailCommandProducer(IQueueExt queueExt) { _queueExt = queueExt; _queueExt.RegisterTypes( QueueType.Create(new NoRefundDepositDoneData().MessageId(), typeof(QueueRequestModel <SendEmailData <NoRefundDepositDoneData> >)) ); _queueExt.RegisterTypes( QueueType.Create(new NoRefundOCashOutData().MessageId(), typeof(QueueRequestModel <SendEmailData <NoRefundOCashOutData> >)) ); _queueExt.RegisterTypes( QueueType.Create(new TransferCompletedData().MessageId(), typeof(QueueRequestModel <SendEmailData <TransferCompletedData> >)) ); _queueExt.RegisterTypes( QueueType.Create(new DirectTransferCompletedData().MessageId(), typeof(QueueRequestModel <SendEmailData <DirectTransferCompletedData> >)) ); }
public EmailMessageQueueProducer(IQueueExt queueExt) { _queueExt = queueExt; _queueExt.RegisterTypes( QueueType.Create(LykkeCardVisaData.QueueName, typeof(QueueRequestModel <SendEmailData <LykkeCardVisaData> >)), QueueType.Create(BankCashInData.QueueName, typeof(QueueRequestModel <SendEmailData <BankCashInData> >)), QueueType.Create(CashInData.QueueName, typeof(QueueRequestModel <SendEmailData <CashInData> >)), QueueType.Create(CashInRefundData.QueueName, typeof(QueueRequestModel <SendEmailData <CashInRefundData> >)), QueueType.Create(CashoutUnlockData.QueueName, typeof(QueueRequestModel <SendEmailData <CashoutUnlockData> >)), QueueType.Create(DeclinedDocumentsData.QueueName, typeof(QueueRequestModel <SendEmailData <DeclinedDocumentsData> >)), QueueType.Create(DirectTransferCompletedData.QueueName, typeof(QueueRequestModel <SendEmailData <DirectTransferCompletedData> >)), QueueType.Create(EmailComfirmationData.QueueName, typeof(QueueRequestModel <SendEmailData <EmailComfirmationData> >)), QueueType.Create(FailedTransactionData.QueueName, typeof(QueueRequestModel <SendBroadcastData <FailedTransactionData> >)), QueueType.Create(FreezePeriodNotificationData.QueueName, typeof(QueueRequestModel <SendBroadcastData <FreezePeriodNotificationData> >)), QueueType.Create(KycOkData.QueueName, typeof(QueueRequestModel <SendEmailData <KycOkData> >)), QueueType.Create(MyLykkeCashInData.QueueName, typeof(QueueRequestModel <SendEmailData <MyLykkeCashInData> >)), QueueType.Create(NoRefundDepositDoneData.QueueName, typeof(QueueRequestModel <SendEmailData <NoRefundDepositDoneData> >)), QueueType.Create(NoRefundOCashOutData.QueueName, typeof(QueueRequestModel <SendEmailData <NoRefundOCashOutData> >)), QueueType.Create(OrdinaryCashOutRefundData.QueueName, typeof(QueueRequestModel <SendEmailData <OrdinaryCashOutRefundData> >)), QueueType.Create(PasswordRecoveryEmailComfirmationData.QueueName, typeof(QueueRequestModel <SendEmailData <PasswordRecoveryEmailComfirmationData> >)), QueueType.Create(PlainTextBroadCastData.QueueName, typeof(QueueRequestModel <SendEmailData <PlainTextBroadCastData> >)), QueueType.Create(PlainTextData.QueueName, typeof(QueueRequestModel <SendEmailData <PlainTextData> >)), QueueType.Create(PrivateWalletAddressData.QueueName, typeof(QueueRequestModel <SendEmailData <PrivateWalletAddressData> >)), QueueType.Create(PrivateWalletBackupData.QueueName, typeof(QueueRequestModel <SendEmailData <PrivateWalletBackupData> >)), QueueType.Create(RegistrationMessageData.QueueName, typeof(QueueRequestModel <SendEmailData <RegistrationMessageData> >)), QueueType.Create(RejectedData.QueueName, typeof(QueueRequestModel <SendEmailData <RejectedData> >)), QueueType.Create(RemindPasswordData.QueueName, typeof(QueueRequestModel <SendEmailData <RemindPasswordData> >)), QueueType.Create(RequestForDocumentData.QueueName, typeof(QueueRequestModel <SendEmailData <RequestForDocumentData> >)), QueueType.Create(RequestForExpiredDocumentData.QueueName, typeof(QueueRequestModel <SendEmailData <RequestForExpiredDocumentData> >)), QueueType.Create(SolarCashOutData.QueueName, typeof(QueueRequestModel <SendEmailData <SolarCashOutData> >)), QueueType.Create(SolarCoinAddressData.QueueName, typeof(QueueRequestModel <SendEmailData <SolarCoinAddressData> >)), QueueType.Create(SwapRefundData.QueueName, typeof(QueueRequestModel <SendEmailData <SwapRefundData> >)), QueueType.Create(SwiftCashoutDeclinedData.QueueName, typeof(QueueRequestModel <SendEmailData <SwiftCashoutDeclinedData> >)), QueueType.Create(SwiftCashoutProcessedData.QueueName, typeof(QueueRequestModel <SendEmailData <SwiftCashoutProcessedData> >)), QueueType.Create(SwiftCashOutRequestData.QueueName, typeof(QueueRequestModel <SendEmailData <SwiftCashOutRequestData> >)), QueueType.Create(SwiftConfirmedData.QueueName, typeof(QueueRequestModel <SendBroadcastData <SwiftConfirmedData> >)), QueueType.Create(TransferCompletedData.QueueName, typeof(QueueRequestModel <SendEmailData <TransferCompletedData> >)), QueueType.Create(UserRegisteredData.QueueName, typeof(QueueRequestModel <SendBroadcastData <UserRegisteredData> >)), QueueType.Create(RegistrationEmailVerifyData.QueueName, typeof(QueueRequestModel <SendEmailData <RegistrationEmailVerifyData> >)) ); }
public void RegisterHandler <T>(string id, Func <T, Task> handler) { _queueExt.RegisterTypes(QueueType.Create(id, typeof(T))); _handlers.Add(typeof(T), itm => handler((T)itm)); }