File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Catglobe.CgScript.Deployment Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -39,12 +39,14 @@ private static IServiceCollection AddCommonCgScript(IServiceCollection services)
39
39
{
40
40
services . TryAddSingleton < IScriptProvider , FilesFromDirectoryScriptProvider > ( ) ;
41
41
services . AddScoped < DeploymentAuthenticator > ( ) ;
42
- services . AddScoped < DeploymentAuthHandler > ( ) ;
43
42
services . AddHttpClient < IDeployer , Deployer > ( ( sp , httpClient ) => {
44
43
var site = sp . GetRequiredService < IOptions < DeploymentOptions > > ( ) . Value . Authority ;
45
44
httpClient . BaseAddress = new ( site + "api/CgScriptDeployment/" ) ;
46
45
} )
47
46
. AddHttpMessageHandler < DeploymentAuthHandler > ( ) ;
47
+ services . AddHttpClient < DeploymentAuthenticator > ( ( sp , httpClient ) => {
48
+ httpClient . BaseAddress = sp . GetRequiredService < IOptions < DeploymentOptions > > ( ) . Value . Authority ;
49
+ } ) ;
48
50
return services ;
49
51
}
50
52
}
You can’t perform that action at this time.
0 commit comments