forked from VaughnVernon/IDDD_Samples_NET
-
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 branch 'master' of https://github.com/eulerfx/IDDD_Samples_NET
- Loading branch information
Showing
165 changed files
with
1,188 additions
and
151 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace SaaSOvation.AgilePM.Application | ||
{ | ||
/// <summary> | ||
/// TODO: implement | ||
/// </summary> | ||
public class ApplicationServiceLifeCycle | ||
{ | ||
public static void Begin(bool isListening = true) | ||
{ | ||
|
||
} | ||
|
||
public static void Fail(Exception ex = null) | ||
{ | ||
|
||
} | ||
|
||
public static void Success() | ||
{ | ||
|
||
} | ||
} | ||
} |
33 changes: 33 additions & 0 deletions
33
iddd_agilepm/Application/Notifications/NotificationApplicationService.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,33 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
using SaaSOvation.Common.Notifications; | ||
|
||
namespace SaaSOvation.AgilePM.Application.Notifications | ||
{ | ||
public class NotificationApplicationService | ||
{ | ||
public NotificationApplicationService(INotificationPublisher notificationPublisher) | ||
{ | ||
this.notificationPublisher = notificationPublisher; | ||
} | ||
|
||
readonly INotificationPublisher notificationPublisher; | ||
|
||
public void PublishNotifications() | ||
{ | ||
ApplicationServiceLifeCycle.Begin(false); | ||
try | ||
{ | ||
this.notificationPublisher.PublishNotifications(); | ||
ApplicationServiceLifeCycle.Success(); | ||
} | ||
catch (Exception ex) | ||
{ | ||
ApplicationServiceLifeCycle.Fail(ex); | ||
} | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
iddd_agilepm/Application/Processes/ProcessApplicationService.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,40 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
using SaaSOvation.Common.Domain.Model.LongRunningProcess; | ||
|
||
namespace SaaSOvation.AgilePM.Application.Processes | ||
{ | ||
public class ProcessApplicationService | ||
{ | ||
public ProcessApplicationService(ITimeConstrainedProcessTrackerRepository processTrackerRepository) | ||
{ | ||
this.processTrackerRepository = processTrackerRepository; | ||
} | ||
|
||
readonly ITimeConstrainedProcessTrackerRepository processTrackerRepository; | ||
|
||
public void CheckForTimedOutProccesses() | ||
{ | ||
ApplicationServiceLifeCycle.Begin(); | ||
try | ||
{ | ||
var trackers = this.processTrackerRepository.GetAllTimedOut(); | ||
|
||
foreach (var tracker in trackers) | ||
{ | ||
tracker.InformProcessTimedOut(); | ||
this.processTrackerRepository.Save(tracker); | ||
} | ||
|
||
ApplicationServiceLifeCycle.Success(); | ||
} | ||
catch (Exception ex) | ||
{ | ||
ApplicationServiceLifeCycle.Fail(ex); | ||
} | ||
} | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
iddd_agilepm/Application/Products/BacklogItems/BacklogItemApplicationService.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,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
using SaaSOvation.AgilePM.Domain.Model.Products.BacklogItems; | ||
|
||
namespace SaaSOvation.AgilePM.Application.Products.BacklogItems | ||
{ | ||
public class BacklogItemApplicationService | ||
{ | ||
public BacklogItemApplicationService(IBacklogItemRepository backlogItemRepository) | ||
{ | ||
this.backlogItemRepository = backlogItemRepository; | ||
} | ||
|
||
readonly IBacklogItemRepository backlogItemRepository; | ||
|
||
// TODO: APIs for student assignment | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
iddd_agilepm/Application/Products/InitiateDiscussionCommand.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,27 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace SaaSOvation.AgilePM.Application.Products | ||
{ | ||
public class InitiateDiscussionCommand | ||
{ | ||
public InitiateDiscussionCommand() | ||
{ | ||
} | ||
|
||
public InitiateDiscussionCommand(string tenantId, string discussionId, string productId) | ||
{ | ||
this.TenantId = tenantId; | ||
this.DiscussionId = discussionId; | ||
this.ProductId = productId; | ||
} | ||
|
||
public string TenantId { get; set; } | ||
|
||
public string DiscussionId { get; set; } | ||
|
||
public string ProductId { get; set; } | ||
} | ||
} |
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,30 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
|
||
namespace SaaSOvation.AgilePM.Application.Products | ||
{ | ||
public class NewProductCommand | ||
{ | ||
public NewProductCommand() | ||
{ | ||
} | ||
|
||
public NewProductCommand(string tenantId, string productOwnerId, string name, string description) | ||
{ | ||
this.TenantId = tenantId; | ||
this.ProductOwnerId = productOwnerId; | ||
this.Name = name; | ||
this.Description = description; | ||
} | ||
|
||
public string TenantId { get; set; } | ||
|
||
public string ProductOwnerId { get; set; } | ||
|
||
public string Name { get; set; } | ||
|
||
public string Description { get; set; } | ||
} | ||
} |
Oops, something went wrong.