/// <summary> /// Create a new instance of Backtrace API /// </summary> /// <param name="credentials">API credentials</param> public BacktraceApi(BacktraceCredentials credentials, uint reportPerMin = 3) { if (credentials == null) { throw new ArgumentException($"{nameof(BacktraceCredentials)} cannot be null"); } _serverurl = credentials.GetSubmissionUrl().ToString(); reportLimitWatcher = new ReportLimitWatcher(reportPerMin); }
/// <summary> /// Create a new instance of Backtrace API /// </summary> /// <param name="credentials">API credentials</param> public BacktraceApi(BacktraceCredentials credentials, uint reportPerMin = 3) { if (credentials == null) { throw new ArgumentException($"{nameof(BacktraceCredentials)} cannot be null"); } _serverurl = credentials.GetSubmissionUrl(); reportLimitWatcher = new ReportLimitWatcher(reportPerMin); #if !NET35 InitializeHttpClient(credentials.Proxy); #endif }