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()); }
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; }
public async Task UpdateInformation(Supports message) { Information.UpdateFromCommand(message); await SaveInformationAndUpdateCatalog(); }