示例#1
0
        internal static IdentityProvider ToIdentityProvider(this CosmosIdentityProvider cosmosIdentityProvider)
        {
            EnsureArg.IsNotNull(cosmosIdentityProvider);

            return(new IdentityProvider(
                       cosmosIdentityProvider.Name,
                       cosmosIdentityProvider.Authority,
                       cosmosIdentityProvider.Audience,
                       cosmosIdentityProvider.ETag));
        }
        public static IdentityProvider ToIdentityProvider(this CosmosIdentityProvider cosmosIdentityProvider)
        {
            EnsureArg.IsNotNull(cosmosIdentityProvider);

            return(new IdentityProvider(
                       cosmosIdentityProvider.Name,
                       cosmosIdentityProvider.Authority,
                       cosmosIdentityProvider.Audience,
                       cosmosIdentityProvider.ETag.Trim('"')));
        }