public void When(AddSecurityIdentity c) { var user = new UserId(_identityGenerator.GetId()); var token = _generator.CreateToken(); Apply(new SecurityIdentityAdded(c.Id, user, c.DisplayName, c.Identity, token)); }
public void When(AddSecurityIdentity c) { Update(c, a => a.AddIdentity(_ids, _pwds, c.DisplayName, c.Identity)); }
static string When(AddSecurityIdentity c) { return string.Format("Add identity '{0}': {1}", c.DisplayName, c.Identity); }
static string When(AddSecurityIdentity c) { return(string.Format("Add identity '{0}': {1}", c.DisplayName, c.Identity)); }