Example #1
0
 private static DataClientInfo OpenBySecretInternal(IHpcContext hpcContext, string dataClientId, int jobId, string jobSecret)
 {
     return(new DataServiceRestClient(hpcContext).OpenDataClientBySecret(dataClientId, jobId, jobSecret).GetAwaiter().GetResult());
 }
Example #2
0
 public Task ConnectServiceAsClientAsync(IHpcContext hpcContext, ServiceAsClientIdentityProvider identityProvider, string userName, string password, ConnectMethod method)
 {
     lock (SyncRoot) { return(Instance.ConnectServiceAsClientAsync(hpcContext, identityProvider, userName, password, method)); }
 }
 public DataServiceRestClient(IHpcContext context) : base(context)
 {
 }