-
Notifications
You must be signed in to change notification settings - Fork 0
Develop #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Develop #24
Changes from all commits
5792399
4204b56
b56eb2d
f54f8be
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| using System; | ||
|
|
||
| namespace Wolfgang.Etl.Abstractions; | ||
|
|
||
| /// <summary> | ||
| /// Provides a report of the current count in an ETL process. | ||
| /// </summary> | ||
| /// <remarks> | ||
| /// This class can be used as a base class for other progress reports and expanded | ||
| /// with additional information such as total count, count remaining, etc. | ||
| /// </remarks> | ||
| public record Report | ||
| { | ||
| /// <summary> | ||
| /// Constructs a new instance of the <see cref="Report"/> class with the specified current count. | ||
| /// </summary> | ||
| /// <param name="currentCount"></param> | ||
| /// <exception cref="ArgumentOutOfRangeException"></exception> | ||
| public Report(int currentCount) | ||
| { | ||
| if (currentCount < 0) | ||
| { | ||
| throw new ArgumentOutOfRangeException(nameof(currentCount), "Current count cannot be less than 0."); | ||
| } | ||
|
|
||
| CurrentCount = currentCount; | ||
| } | ||
|
|
||
|
|
||
|
|
||
| /// <summary> | ||
| /// The number of items that have been processed so far in the ETL process. | ||
| /// </summary> | ||
| public int CurrentCount { get; } | ||
|
|
||
| } | ||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -273,6 +273,16 @@ CancellationToken token | |||||||||
|
|
||||||||||
|
|
||||||||||
|
|
||||||||||
| /// <summary> | ||||||||||
| /// The worker method that performs the actual transformation. | ||||||||||
| /// </summary> | ||||||||||
| /// <param name="items"> | ||||||||||
| /// IAsyncEnumerable<TSource> - A list of 0 or more items to be transformed | ||||||||||
| /// </param> | ||||||||||
| /// <param name="token"> | ||||||||||
| /// A CancellationToken to observe while waiting for the task to complete. | ||||||||||
| /// </param> | ||||||||||
| /// <returns></returns> | ||||||||||
|
||||||||||
| /// <returns></returns> | |
| /// <returns> | |
| /// An <see cref="IAsyncEnumerable{TDestination}"/> containing the transformed items. | |
| /// </returns> |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -2,28 +2,36 @@ | |||||
|
|
||||||
| <PropertyGroup> | ||||||
| <TargetFrameworks> | ||||||
| net462;net472;net48;net481; | ||||||
| netstandard2.0;netstandard2.1; | ||||||
| net8.0;net9.0 | ||||||
| net462;net472;net48;net481; | ||||||
| netstandard2.0;netstandard2.1; | ||||||
| net8.0;net9.0 | ||||||
| </TargetFrameworks> | ||||||
| <LangVersion>latest</LangVersion> | ||||||
| <Version>0.5.0</Version> | ||||||
| <Version>0.6.0</Version> | ||||||
| <GeneratePackageOnBuild>False</GeneratePackageOnBuild> | ||||||
| <Title>$(AssemblyName)</Title> | ||||||
| <Authors>Chris Wolfgang</Authors> | ||||||
| <Description>Contains interfaces and base classes used to build ETL applications</Description> | ||||||
| <Copyright>2025</Copyright> | ||||||
| <PackageProjectUrl>https://github.com/Chris-Wolfgang/ETL-Abstractions</PackageProjectUrl> | ||||||
| <Copyright>Copyright {copyright year} {author}</Copyright> | ||||||
|
||||||
| <Copyright>Copyright {copyright year} {author}</Copyright> | |
| <Copyright>Copyright 2024 Chris Wolfgang</Copyright> |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -15,6 +15,8 @@ | |||||
|
|
||||||
| <IsPackable>false</IsPackable> | ||||||
| <IsTestProject>true</IsTestProject> | ||||||
| <Copyright>Copyright {copyright year} {author}</Copyright> | ||||||
|
||||||
| <Copyright>Copyright {copyright year} {author}</Copyright> | |
| <Copyright>Copyright 2024 Wolfgang</Copyright> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The param documentation for 'currentCount' is missing a description. It should explain what the current count represents.