private string GetProtectionAccessToken(string OxdHost, int OxdPort) { var getClientAccessToken = new GetClientTokenClient(); try { return(getClientAccessToken.GetClientToken(OxdHost, OxdPort, getClientAccessTokenParams()).Data.accessToken); } catch (NullReferenceException ex) { return(null); } }
private string GetProtectionAccessToken(string oxdtohttpurl) { var getClientAccessToken = new GetClientTokenClient(); return(getClientAccessToken.GetClientToken(oxdtohttpurl, getClientAccessTokenParams()).Data.accessToken); }