-
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.
Merge pull request #6 from pfpack/dev
Dev
- Loading branch information
Showing
65 changed files
with
235 additions
and
235 deletions.
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.Result/AsyncPipeline.Result.cs
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
namespace System; | ||
|
||
public readonly partial struct AsyncPipeline<TSuccess, TFailure> : IEquatable<AsyncPipeline<TSuccess, TFailure>> | ||
where TFailure : struct | ||
{ | ||
private readonly AsyncPipeline<Result<TSuccess, TFailure>> pipeline; | ||
|
||
internal AsyncPipeline(AsyncPipeline<Result<TSuccess, TFailure>> pipeline) | ||
=> | ||
this.pipeline = pipeline; | ||
} |
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
8 changes: 8 additions & 0 deletions
8
src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.Result/Equality/Equality.Equals.Impl.cs
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
namespace System; | ||
|
||
partial struct AsyncPipeline<TSuccess, TFailure> | ||
{ | ||
public bool Equals(AsyncPipeline<TSuccess, TFailure> other) | ||
=> | ||
AsyncPipelineComparer.Equals(pipeline, other.pipeline); | ||
} |
23 changes: 23 additions & 0 deletions
23
src/core-asyncpipeline/AsyncPipeline/AsyncPipeline.Result/Equality/Equality.Equals.Wrap.cs
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System.Diagnostics.CodeAnalysis; | ||
|
||
namespace System; | ||
|
||
partial struct AsyncPipeline<TSuccess, TFailure> | ||
{ | ||
public static bool Equals(AsyncPipeline<TSuccess, TFailure> left, AsyncPipeline<TSuccess, TFailure> right) | ||
=> | ||
left.Equals(right); | ||
|
||
public static bool operator ==(AsyncPipeline<TSuccess, TFailure> left, AsyncPipeline<TSuccess, TFailure> right) | ||
=> | ||
left.Equals(right); | ||
|
||
public static bool operator !=(AsyncPipeline<TSuccess, TFailure> left, AsyncPipeline<TSuccess, TFailure> right) | ||
=> | ||
left.Equals(right) is false; | ||
|
||
public override bool Equals([NotNullWhen(true)] object? obj) | ||
=> | ||
obj is AsyncPipeline<TSuccess, TFailure> other && | ||
Equals(other); | ||
} |
4 changes: 2 additions & 2 deletions
4
...sultFlow/Equality/Equality.GetHashCode.cs → ...e.Result/Equality/Equality.GetHashCode.cs
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,10 @@ | ||
namespace System; | ||
|
||
partial struct AsyncResultFlow<TSuccess, TFailure> | ||
partial struct AsyncPipeline<TSuccess, TFailure> | ||
{ | ||
public override int GetHashCode() | ||
=> | ||
HashCode.Combine( | ||
EqualityContractComparer.GetHashCode(EqualityContract), | ||
AsyncPipelineComparer.GetHashCode(asyncPipeline)); | ||
AsyncPipelineComparer.GetHashCode(pipeline)); | ||
} |
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
6 changes: 3 additions & 3 deletions
6
...Pipeline/AsyncResultFlow/Filter/Filter.cs → ...ine/AsyncPipeline.Result/Filter/Filter.cs
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
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
Oops, something went wrong.