Beispiel #1
0
    public async Task Timeout(CloseVoting state, IMessageHandlerContext context)
    {
        var reportZipCode = new ReportZipCode
        {
            ZipCode = Data.ZipCode,
            NumberOfVotes = Data.Count
        };
        await context.SendLocal(reportZipCode)
            .ConfigureAwait(false);

        MarkAsComplete();
    }
Beispiel #2
0
    public Task Timeout(CloseVoting state, IMessageHandlerContext context)
    {
        MarkAsComplete();

        var reportZipCode = new ReportZipCode
        {
            ZipCode       = Data.ZipCode,
            NumberOfVotes = Data.Count
        };

        return(context.SendLocal(reportZipCode));
    }