Commit Graph

2 Commits

Author SHA1 Message Date
Whit Waldo a61db8bf97
Adds workflow replay-safe logger (#1434)
* Removed obsolete type

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added missing using

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Adding interface for IWorkflowContext for replayability concerns

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unused IConfiguration

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added ReplaySafeLogger type

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Building out functionality to expose ReplayLogger in workflow context

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added license information to file

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unnecessary file

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated copyright header for different project, made some tweaks for nullability errors

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added virtual methods that use the already-available ILoggerFactory to create the ReplaySafeLogger on the WorkflowContext

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unnecessary registration

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Updated example to demonstrate using ReplaySafeLogger in the orchestration context

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Tweaks on visibility and abstraction so that the methods are available in the context made visible to workflow developers

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed obsolete type registrations

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Simplified argument null check

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed since-removed code leftover from merge

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added documentation demonstrating how to access the replay-safe logger

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unnecessary and separate ReplaySafeLogger in favor of method to create it off the TaskOrchestrationContext (innerContext)

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
2024-12-19 16:23:46 -06:00
Whit Waldo ef04cad901
Optional DI lifecycle change (#1408)
* Added mechanism to allow the service lifetime to be overridden from a singleton (default) to another lifetime

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added unit tests - updated dependencies accordingly

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added service lifetime to DaprClient as well

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added update to DaprClient to pass service lifetime through

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Added documentation indicating how to register DaprWorkflowClient with different lifecycle options.

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Removed unnecessary line from csproj

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Simplified registrations

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

* Called out an important point about registrations

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>

---------

Signed-off-by: Whit Waldo <whit.waldo@innovian.net>
2024-11-21 15:40:20 -06:00