示例#1
0
        protected async Task VerifyRecipient(RecipientViewModel recipientModel)
        {
            recipientModel.IsVerifying = true;
            var result = await WorkerCommunicationProxy.ProbeRecipient(recipientModel.Address);

            recipientModel.Verified     = !string.IsNullOrEmpty(result.hostname);
            recipientModel.VerifyResult = result.exception;
            recipientModel.Name         = result.hostname;
            recipientModel.IsVerifying  = false;
            StateHasChanged();
        }
示例#2
0
 public UpdateRecipientsForFolderCommandHandler(IDatabase database, WorkerCommunicationProxy workerNotificationProxy)
 {
     _database = database;
     _workerNotificationProxy = workerNotificationProxy;
 }
示例#3
0
 public UpsertFolderWebhookCommandHandler(IDatabase database, WorkerCommunicationProxy workerProxy)
 {
     _database    = database;
     _workerProxy = workerProxy;
 }