private IAuthenticator CreateAuthenticator(IBitBucketAuthenticatorConfig config)
 {
     return(new ServiceCollection().AddLfsBitBucketAuthenticator(config).BuildServiceProvider().GetRequiredService <IAuthenticator>());
 }
예제 #2
0
 public BitBucketAuthenticator(IBitBucketAuthenticatorConfig config)
 {
     this.config = config;
 }
예제 #3
0
 public static IServiceCollection AddLfsBitBucketAuthenticator(this IServiceCollection services, IBitBucketAuthenticatorConfig config)
 {
     return(services.AddSingleton <IAuthenticator, BitBucketAuthenticator>().AddSingleton(config));
 }
예제 #4
0
 public BitBucketAuthenticator(IBitBucketAuthenticatorConfig config, IBitBucketClientFactory clientFactory)
 {
     this.config        = config;
     this.clientFactory = clientFactory;
 }