forked from LykkeCity/MT
-
Notifications
You must be signed in to change notification settings - Fork 1
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 #460 from LykkeBusiness/LT-5061-order-does-not-exe…
…cute-upon-contribution fix(LT-5061): let special liquidation fail
- Loading branch information
Showing
16 changed files
with
709 additions
and
252 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
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
18 changes: 18 additions & 0 deletions
18
src/MarginTrading.Backend.Services/Workflow/ISagaEventHandler.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,18 @@ | ||
// Copyright (c) 2019 Lykke Corp. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
using System.Threading.Tasks; | ||
using Lykke.Cqrs; | ||
|
||
namespace MarginTrading.Backend.Services.Workflow | ||
{ | ||
/// <summary> | ||
/// Base interface for all saga event handlers | ||
/// </summary> | ||
public interface ISagaEventHandler<in TEvent> | ||
{ | ||
Task Handle(TEvent @event, ICommandSender sender); | ||
|
||
Task<bool> CanHandle(TEvent @event) => Task.FromResult(true); | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
src/MarginTrading.Backend.Services/Workflow/ISpecialLiquidationSagaEventHandler.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,12 @@ | ||
// Copyright (c) 2019 Lykke Corp. | ||
// See the LICENSE file in the project root for more information. | ||
|
||
namespace MarginTrading.Backend.Services.Workflow | ||
{ | ||
/// <summary> | ||
/// Marker interface for special liquidation saga event handlers | ||
/// </summary> | ||
public interface ISpecialLiquidationSagaEventHandler | ||
{ | ||
} | ||
} |
Oops, something went wrong.