예제 #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());
 }
예제 #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;
 }
예제 #3
0
파일: User.cs 프로젝트: Caraul/FabricAdcHub
 public async Task UpdateInformation(Supports message)
 {
     Information.UpdateFromCommand(message);
     await SaveInformationAndUpdateCatalog();
 }