• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

lucaslorentz / durabletask-extensions / 5835653629

pending completion
5835653629

push

github

lucaslorentz
Add ExtendedOrchestrationContext to simplify workers API

71 of 71 new or added lines in 5 files covered. (100.0%)

2303 of 2798 relevant lines covered (82.31%)

145.42 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/src/LLL.DurableTask.Worker/OrchestrationContextStatusExtensions.cs
1
using System;
2

3
namespace LLL.DurableTask.Worker
4
{
5
    public static class OrchestrationContextStatusExtensions
6
    {
7
        public static void SetStatusProvider<T>(
8
            this ExtendedOrchestrationContext context,
9
            Func<T> statusProvider)
10
        {
11
            if (statusProvider == null)
2✔
12
            {
13
                context.StatusProvider = null;
×
14
                return;
×
15
            }
16

17
            context.StatusProvider = () => context.MessageDataConverter.Serialize(statusProvider());
4✔
18
        }
19
    }
20
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc