Exemple #1
0
        internal ConfidentialClientApplication(
            ApplicationConfiguration configuration)
            : base(configuration)
        {
            GuardMobileFrameworks();

            InMemoryPartitionedCacheSerializer = new InMemoryPartitionedCacheSerializer(ServiceBundle.DefaultLogger);
            AppTokenCacheInternal = configuration.AppTokenCacheInternalForTest ??
                                    new TokenCache(ServiceBundle, true, InMemoryPartitionedCacheSerializer);
            Certificate = configuration.ClientCredentialCertificate;
        }
        internal ConfidentialClientApplication(
            ApplicationConfiguration configuration)
            : base(configuration)
        {
            GuardMobileFrameworks();

            InMemoryPartitionedCacheSerializer = new InMemoryPartitionedCacheSerializer(ServiceBundle.ApplicationLogger);
            AppTokenCacheInternal = configuration.AppTokenCacheInternalForTest ??
                                    new TokenCache(ServiceBundle, true, InMemoryPartitionedCacheSerializer);
            Certificate = configuration.ClientCredentialCertificate;

            this.ServiceBundle.ApplicationLogger.Verbose($"ConfidentialClientApplication {configuration.GetHashCode()} created");
        }