Beispiel #1
0
 public void UpdateConfiguration(TrustAnchorName name, string logo)
 {
     Apply(new TrustAnchorEvents.ConfigurationUpdated
     {
         Name = name,
         Url  = logo
     });
 }
Beispiel #2
0
        protected override void When(object @event)
        {
            switch (@event)
            {
            case TrustAnchorEvents.Registered e:
                Id     = new TrustAnchorDID(e.DID);
                VerKey = e.VerKey;
                break;

            case TrustAnchorEvents.ConfigurationUpdated e:
                Name = TrustAnchorName.FromString(e.Name);
                Logo = new Uri(e.Url);
                break;
            }
        }