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