EventFlow icon indicating copy to clipboard operation
EventFlow copied to clipboard

Distinct Command And Documentation

Open KoriSeng opened this issue 5 years ago • 6 comments

There is discrepancy between the source and the documentation i think.

https://github.com/eventflow/EventFlow/blob/3ae504fdddac3ef66befe524210e393e37e8936e/Source/EventFlow/Commands/DistinctCommand.cs#L35

KoriSeng avatar Apr 09 '19 05:04 KoriSeng

@7thcubic in what way? specifically?

rasmus avatar May 26 '19 17:05 rasmus

Closing, unsure

rasmus avatar Jun 11 '21 13:06 rasmus

@rasmus , The source code has a third type parameter (TExecutionResult) which doesn't exist in the documentation.

Documentation has

public class UserUpdatePasswordCommand : DistinctCommand<UserAggregate, UserId>
{
  // ...
}

And the source code (at least version 0.81.4483) has:

public abstract class DistinctCommand<TAggregate, TIdentity, TExecutionResult> : ICommand<TAggregate, TIdentity, TExecutionResult>
{
  // ...
}

wenkepaul avatar Jun 15 '21 12:06 wenkepaul

CommandHandler accepts both three and four type parameters. The implementation with three type parameters passes IExecutionResult to the implementation with four type parameters. Could the same be done for DistinceCommand?

public abstract class CommandHandler<TAggregate, TIdentity, TResult, TCommand>

and

public abstract class CommandHandler<TAggregate, TIdentity, TCommand> : CommandHandler<TAggregate, TIdentity, IExecutionResult, TCommand>

wenkepaul avatar Jun 15 '21 13:06 wenkepaul

Thanks @wenkepaul for clarifying

rasmus avatar Jun 17 '21 05:06 rasmus

If you think following the example from the CommandHandler is the ideal solution, I can implement it.

wenkepaul avatar Jun 17 '21 16:06 wenkepaul

Hello there!

We hope you are doing well. We noticed that this issue has not seen any activity in the past 90 days. We consider this issue to be stale and will be closing it within the next seven days.

If you still require assistance with this issue, please feel free to reopen it or create a new issue.

Thank you for your understanding and cooperation.

Best regards, EventFlow

github-actions[bot] avatar Apr 08 '23 13:04 github-actions[bot]

Hello there!

This issue has been closed due to inactivity for seven days. If you believe this issue still needs attention, please feel free to open a new issue or comment on this one to request its reopening.

Thank you for your contribution to this repository.

Best regards, EventFlow

github-actions[bot] avatar Apr 16 '23 09:04 github-actions[bot]