Exemplo n.º 1
0
 public override async Task IfEffect(StateMachineEvent evt, Command parameter)
 {
     var supportsMessage = new Supports(InformationMessageHeader, new HashSet<string>(Features), null);
     await Sender.SendMessage(supportsMessage.ToMessage());
     var sidMessage = new Sid(new InformationMessageHeader(), User.Sid);
     await Sender.SendMessage(sidMessage.ToMessage());
 }
Exemplo n.º 2
0
 public void UpdateFromCommand(Supports message)
 {
     var namedFeatures = new NamedFeatures("SU", this);
     var features = namedFeatures.Value;
     features.ExceptWith(message.RemoveFeatures.Value);
     features.UnionWith(message.AddFeatures.Value);
     namedFeatures.Value = features;
 }
Exemplo n.º 3
0
 public async Task UpdateInformation(Supports message)
 {
     Information.UpdateFromCommand(message);
     await SaveInformationAndUpdateCatalog();
 }