Example #1
0
        internal IdentityDescriptor([NotNull] Microsoft.VisualStudio.Services.Identity.IdentityDescriptor descriptor)
            : base(descriptor.IdentityType, descriptor.Identifier)
        {
            Contract.Requires(descriptor != null);

            if (descriptor == null)
            {
                throw new ArgumentNullException(nameof(descriptor));
            }
        }
Example #2
0
 internal static IIdentityDescriptor AsProxy([CanBeNull] this Microsoft.VisualStudio.Services.Identity.IdentityDescriptor value)
 {
     return(value == null ? null : ExceptionHandlingDynamicProxyFactory.Create <IIdentityDescriptor>(new IdentityDescriptor(value)));
 }