diff --git a/src/MSALWrapper.Benchmark/BrokerBenchmark.cs b/src/MSALWrapper.Benchmark/BrokerBenchmark.cs index d1ac512..5c03013 100644 --- a/src/MSALWrapper.Benchmark/BrokerBenchmark.cs +++ b/src/MSALWrapper.Benchmark/BrokerBenchmark.cs @@ -44,7 +44,6 @@ public BrokerBenchmark() public void WarmUp() { NativeBrokerBenchmark(); - ManagedBrokerBenchmark(); } /// @@ -53,27 +52,14 @@ public void WarmUp() [Benchmark] public void NativeBrokerBenchmark() { - var pcaWrapper = BuildPCAWrapper(this.logger, this.clientID, this.tenantID, true); + var pcaWrapper = BuildPCAWrapper(this.logger, this.clientID, this.tenantID); AuthParameters authParameters = new AuthParameters(this.clientID, this.tenantID, this.scopes); Broker broker = new Broker(this.logger, authParameters, pcaWrapper: pcaWrapper); broker.GetTokenAsync().Wait(); } - /// - /// Benchmark with .Net managed broker. - /// - [Benchmark] - public void ManagedBrokerBenchmark() - { - var pcaWrapper = BuildPCAWrapper(this.logger, this.clientID, this.tenantID, false); - AuthParameters authParameters = new AuthParameters(this.clientID, this.tenantID, this.scopes); - Broker broker = new Broker(this.logger, authParameters, pcaWrapper: pcaWrapper); - - broker.GetTokenAsync().Wait(); - } - - private IPCAWrapper BuildPCAWrapper(ILogger logger, Guid clientId, Guid tenantId, bool useNativeBroker) + private IPCAWrapper BuildPCAWrapper(ILogger logger, Guid clientId, Guid tenantId) { IList errors = new List();