-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Several changes have included updating test project and pulse logger class, also deleting several scripts, 'Frank.PulseFlow.Sample' project, '.gitignore', and 'Directory.Build.props'. These changes streamline the project, increase code readability and improve logging mechanism. The removal of unnecessary files and scripts reduces clutter, enhancing maintainability.
- Loading branch information
1 parent
5739344
commit 3237dc5
Showing
21 changed files
with
213 additions
and
628 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
namespace Frank.PulseFlow.Logging; | ||
|
||
/// <summary> | ||
/// Represents a logger scope that can pulse flow and logs a state of type <typeparamref name="TState"/>. | ||
/// </summary> | ||
/// <typeparam name="TState">The type of the state to be logged.</typeparam> | ||
public class PulseFlowLoggerScope<TState> : IDisposable | ||
{ | ||
/// <summary> | ||
/// Gets or sets the state of the object. | ||
/// </summary> | ||
/// <typeparam name="TState">The type of the state.</typeparam> | ||
Check warning on line 12 in Frank.PulseFlow.Logging/PulseFlowLoggerScope.cs GitHub Actions / Merge Job / Publish Preview Job
Check warning on line 12 in Frank.PulseFlow.Logging/PulseFlowLoggerScope.cs GitHub Actions / Merge Job / Publish Preview Job
Check warning on line 12 in Frank.PulseFlow.Logging/PulseFlowLoggerScope.cs GitHub Actions / Release Job / Release Job
|
||
/// <returns>The current state of the object.</returns> | ||
public TState? State { get; private set; } | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the <see cref="PulseFlowLoggerScope{TState}"/> class with the specified state. | ||
/// </summary> | ||
/// <param name="state">The state to assign to the logger scope.</param> | ||
public PulseFlowLoggerScope(TState state) => State = state; | ||
|
||
/// <summary> | ||
/// Performs application-defined tasks associated with freeing, releasing, or resetting resources. | ||
/// </summary> | ||
public void Dispose() => State = default; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.