我从登录时的DocuSign API收到以下错误,自31/05/2018起.
DocuSign.eSign.Client.ApiException:'调用登录时出错:操作已超时'.
自去年以来,我们一直在测试DocuSign API,它与我们的内部集成应用程序一起正常运行.昨天是我们第一次在登录时收到此错误消息,问题仍然存在.如果我通过演示版DocuSign网站https://appdemo.docusign.com登录,我可以登录.但如果我通过DocuSign API尝试相同,则会出现超时错误.
Configuration.ApiClient.Configuration.ApiClient.RestClient.BaseUrl设置为https://demo.docusign.net/restapi/
new System.Collections.Generic.Mscorlib_DictionaryDebugView<string, string>(Configuration.DefaultHeader).Items[0] 被设置为
{[X-DocuSign-Authentication, {"Username":[username], "Password":[password], "IntegratorKey":[IntegratorKey]}]}
我们根本没有更改用户名或密码或IntegratorKey.
response.StatusCode返回的值为0.请在下面找到我的登录代码.
public ApiResponse< LoginInformation > LoginWithHttpInfo (AuthenticationApi.LoginOptions options = null)
{
var path_ = "/v2/login_information";
var pathParams = new Dictionary<String, String>();
var queryParams = new Dictionary<String, String>();
var headerParams = new Dictionary<String, String>(Configuration.DefaultHeader);
var formParams = new Dictionary<String, String>();
var fileParams = new Dictionary<String, FileParameter>();
Object postBody = null;
// to determine the Content-Type header
String[] httpContentTypes = new …Run Code Online (Sandbox Code Playgroud) 如何使用RNGCryptoServiceProvider获得大于256的随机数?
码:
private static RNGCryptoServiceProvider rngCsp = new RNGCryptoServiceProvider();
byte[] randomNumber = new byte[1];
//Fill the array with a random value.
rngCsp.GetBytes(randomNumber);
Run Code Online (Sandbox Code Playgroud)