Skip to content

Commit 7b555be

Browse files
committed
Removed Interrupt without user for consitency
1 parent b51266c commit 7b555be

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

MORYX-Framework.sln

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ EndProject
6565
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DFC092A6-B935-4D19-A564-9AEDEEF999B9}"
6666
ProjectSection(SolutionItems) = preProject
6767
.build\Common.props = .build\Common.props
68-
Directory.build.props = Directory.build.props
68+
Directory.Build.props = Directory.Build.props
6969
Directory.Build.targets = Directory.Build.targets
7070
Directory.Packages.props = Directory.Packages.props
7171
LICENSE = LICENSE

src/Moryx.Orders.Management/Facade/OrderManagementFacade.cs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -257,17 +257,15 @@ public ReportContext GetInterruptContext(Operation operation)
257257
return OperationManager.GetInterruptContext(operationData);
258258
}
259259

260-
public void InterruptOperation(Operation operation)
261-
{
262-
InterruptOperation(operation, UserManagement.DefaultUser);
263-
}
264-
265260
public void InterruptOperation(Operation operation, User user)
266261
{
267262
ValidateHealthState();
268263

264+
// Get default user if there is no
265+
user ??= UserManagement.DefaultUser;
266+
269267
var operationData = GetOperationDataSave(operation);
270-
OperationManager.Interrupt(operationData, user ?? UserManagement.DefaultUser);
268+
OperationManager.Interrupt(operationData, user);
271269
}
272270

273271
private IOperationData GetOperationDataSave(Operation operation)

src/Moryx.Orders/Facade/IOrderManagement.cs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,11 +79,6 @@ public interface IOrderManagement
7979
/// </summary>
8080
ReportContext GetInterruptContext(Operation operation);
8181

82-
/// <summary>
83-
/// Processes a interrupt for the given operation
84-
/// </summary>
85-
void InterruptOperation(Operation operation);
86-
8782
/// <summary>
8883
/// Processes a interrupt for the given operation
8984
/// </summary>

0 commit comments

Comments
 (0)