IScheduleEmails.Handle

// Job ID: #142090
using AG.A1.Scheduler.Project.Contracts.Contracts;

var scheduleEmails = Activate<IScheduleEmails>();
await scheduleEmails.Handle(
    FromJson<ScheduleEmailsRequest>("{\"Id\":18}"),
    null);

Parameters

CurrentCulture
"en-US"
CurrentUICulture
"en-US"

State

5/22/2024 10:14:35 AM (+1m 10.374s) Failed

An exception occurred during performance of the job.

System.Net.Http.HttpRequestException

No connection could be made because the target machine actively refused it. (localhost:61000)

System.Net.Http.HttpRequestException: No connection could be made because the target machine actively refused it. (localhost:61000)
 ---> System.Net.Sockets.SocketException (10061): No connection could be made because the target machine actively refused it.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|277_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
   --- End of inner exception stack trace ---
   at AG.A1.Framework.Rest.RESTClient.HandleResponse[T](RestResponse restResponse) in C:\Users\BAvinash2\Desktop\Workspace 4\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 357
   at AG.A1.Framework.Rest.RESTClient.GetInternalAsync[T](IRESTEndpoint apiEndpoint, IDictionary`2 headers, String expectedRootElement, IDictionary`2 parameters) in C:\Users\BAvinash2\Desktop\Workspace 4\A1Solution\src-framework\AG.A1.Framework\Rest\RESTClient.cs:line 186
   at AG.Integrations.RESTClients.AlliantOneApiREST.EmailControllers.EmailA1ApiClientController.GetPendingEmailQueue(Int32 maxTries) in C:\Users\BAvinash2\Desktop\Workspace 4\A1Solution\src-integrations\AG.Integrations.RESTClients\AlliantOneApiREST\EmailControllers\EmailA1ApiClientController.cs:line 27
   at AG.A1.Scheduler.Project.Application.Features.Emails.ScheduleEmailCommandHandler.Handle(ScheduleEmailsRequest request, CancellationToken cancellationToken) in C:\Users\BAvinash2\Desktop\Workspace 4\A1Solution\src-schedulers\AG.A1.Scheduler.Project.Application\Features\Emails\ScheduleEmailCommandHandler.cs:line 32
   at System.Runtime.CompilerServices.TaskAwaiter.GetResult()

+1d 21h 38m Processing

Server:
wvdappdev-23:22748
Worker:
92cdf3fe

+400ms Enqueued

5/20/2024 12:34:53 PM Created