Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
StateMachineNewStateNotificationEvent.cs
2using NeuroFeatures;
3using System.Text;
4
6{
11 {
16 : base()
17 {
18 }
19
24 public StateMachineNewStateNotificationEvent(NewStateEventArgs e)
25 : base(e)
26 {
27 this.NewState = e.NewState;
28 }
29
33 public string? NewState { get; set; }
34
38 public override async Task<string> GetDescription()
39 {
40 StringBuilder sb = new();
41
42 sb.Append(ServiceRef.Localizer[nameof(AppResources.StateChangedTo), this.NewState ?? string.Empty]);
43 sb.Append(": ");
44 sb.Append(await base.GetDescription());
45
46 return sb.ToString();
47 }
48 }
49}
Contains information about a change in a state-machine associated with a token.
StateMachineNewStateNotificationEvent()
Contains information about a change in a state-machine associated with a token.
override async Task< string > GetDescription()
Gets a descriptive text for the event.
StateMachineNewStateNotificationEvent(NewStateEventArgs e)
Contains information about a change in a state-machine associated with a token.
Base class that references services in the app.
Definition: ServiceRef.cs:31
static IStringLocalizer Localizer
Localization service
Definition: ServiceRef.cs:235