Exemple #1
0
        public Clue Create(EmailAddress value)
        {
            if (value == null)
            {
                throw new ArgumentNullException(nameof(value));
            }

            var clue = this.Create(EntityType.Infrastructure.User, value.GetNormalizedAddress());

            if (!string.IsNullOrEmpty(value.Id?.UniqueId))
            {
                // TODO?
                var code = new EntityCode(EntityType.Infrastructure.User, ExchangeSharedMailboxNameConstants.CodeOrigin, value.Id.UniqueId);
                clue.Data.EntityData.Codes.Add(code);
            }

            return(clue);
        }