-
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.
* Subscriptions * Subscriptions, watches & more - special type of event for subscriptions/watches: notification - watch early implementation - frontend json serialization enhancements - compound request * CamelCase for frontend * CompoundRequest and CompoundResponse on frontend * Embedded behaviors * Watches & more * 0.11.3-alpha
- Loading branch information
1 parent
8f24a84
commit 23b5401
Showing
300 changed files
with
4,720 additions
and
1,525 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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
13 changes: 13 additions & 0 deletions
13
Core/Stateflows.Common/Events/BehaviorStatusNotification.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,13 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace Stateflows.Common | ||
{ | ||
public class BehaviorStatusNotification : Notification | ||
{ | ||
public BehaviorStatus BehaviorStatus { get; set; } | ||
|
||
[JsonProperty(TypeNameHandling = TypeNameHandling.None)] | ||
public IEnumerable<string> ExpectedEvents { 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 |
---|---|---|
@@ -1,9 +1,15 @@ | ||
namespace Stateflows.Common | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace Stateflows.Common | ||
{ | ||
public class BehaviorStatusResponse : Response | ||
{ | ||
public override string Name => nameof(BehaviorStatusResponse); | ||
|
||
public BehaviorStatus BehaviorStatus { get; set; } | ||
|
||
[JsonProperty(TypeNameHandling = TypeNameHandling.None)] | ||
public IEnumerable<string> ExpectedEvents { 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,5 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public abstract class Command : Event | ||
{ } | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public sealed class FinalizationRequest : Request<FinalizationResponse> | ||
{ } | ||
} |
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,7 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public sealed class FinalizationResponse : Response | ||
{ | ||
public bool FinalizationSuccessful { 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,17 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public class Notification : Event | ||
{ | ||
public BehaviorId SenderId { get; set; } | ||
} | ||
|
||
public class Notification<TPayload> : Notification | ||
{ | ||
public Notification() | ||
{ | ||
Payload = default; | ||
} | ||
|
||
public TPayload Payload { 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,5 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public sealed class NotificationsRequest : Request<NotificationsResponse> | ||
{ } | ||
} |
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,5 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public sealed class NotificationsResponse : Response | ||
{ } | ||
} |
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,5 +1,7 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public class ResetRequest : Request<ResetResponse> | ||
{ } | ||
{ | ||
public bool KeepVersion { get; set; } = false; | ||
} | ||
} |
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,13 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace Stateflows.Common | ||
{ | ||
public sealed class SubscriptionRequest : Request<SubscriptionResponse> | ||
{ | ||
public BehaviorId BehaviorId { get; set; } | ||
|
||
[JsonProperty(TypeNameHandling = TypeNameHandling.None)] | ||
public List<string> NotificationNames { get; set; } = new List<string>(); | ||
} | ||
} |
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,7 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public sealed class SubscriptionResponse : Response | ||
{ | ||
public bool SubscriptionSuccessful { 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,13 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace Stateflows.Common | ||
{ | ||
public sealed class UnsubscriptionRequest : Request<UnsubscriptionResponse> | ||
{ | ||
public BehaviorId BehaviorId { get; set; } | ||
|
||
[JsonProperty(TypeNameHandling = TypeNameHandling.None)] | ||
public List<string> NotificationNames { get; set; } = new List<string>(); | ||
} | ||
} |
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,7 @@ | ||
namespace Stateflows.Common | ||
{ | ||
public sealed class UnsubscriptionResponse : Response | ||
{ | ||
public bool UnsubscriptionSuccessful { 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
Oops, something went wrong.