コード例 #1
0
 public MaaServiceApiCaller(ApiInfo apiInfo, List <WeightedAttestationProvidersInfo> weightedProviders, string enclaveInfoFileName, bool forceReconnects)
 {
     _apiInfo           = apiInfo;
     _weightedProviders = weightedProviders;
     _enclaveInfo       = EnclaveInfo.CreateFromFile(enclaveInfoFileName);
     _forceReconnects   = forceReconnects;
     _maaService        = CreateMaaService();
 }
コード例 #2
0
 public MaaServiceApiCaller(ApiInfo apiInfo, List <WeightedAttestationProvidersInfo> weightedProviders, string enclaveInfoFileName, bool forceReconnects)
 {
     _apiInfo           = apiInfo;
     _weightedProviders = weightedProviders;
     _enclaveInfo       = EnclaveInfo.CreateFromFile(enclaveInfoFileName);
     _forceReconnects   = forceReconnects;
     _apiMapping        = new Dictionary <Api, Func <MaaService, Task <MaaService.MaaResponse> > >
     {
         { Api.AttestSgxEnclave, AttestSgxEnclaveAsync },
         { Api.AttestVsmEnclave, AttestVsmEnclaveAsync },
         { Api.AttestVbsEnclave, AttestVbsEnclaveAsync },
         { Api.AttestTeeSgxEnclave, AttestTeeSgxEnclaveAsync },
         { Api.AttestTeeOpenEnclave, AttestTeeOpenEnclaveAsync },
         { Api.AttestTeeVsmEnclave, AttestTeeVsmEnclaveAsync },
         { Api.AttestTeeVbsEnclave, AttestTeeVbsEnclaveAsync },
         { Api.AttestOpenEnclave, AttestOpenEnclaveAsync },
         { Api.AttestSevSnpVm, AttestSevSnpVmAsync },
         { Api.AttestTpm, AttestTpmAsync },
         { Api.GetCerts, GetCertsAsync },
         { Api.GetOpenIdConfiguration, GetOpenIdConfigurationAsync },
         { Api.GetServiceHealth, GetServiceHealthAsync },
     };
 }