/// <summary> /// Configure uploads /// </summary> /// <param name="oneTrueHost">Host. Host and absolute path to the onetrueerror directory</param> /// <param name="appKey">Appkey from the web site</param> /// <param name="sharedSecret">Shared secret from the web site</param> public void Credentials(Uri oneTrueHost, string appKey, string sharedSecret) { if (oneTrueHost == null) { throw new ArgumentNullException("oneTrueHost"); } if (appKey == null) { throw new ArgumentNullException("appKey"); } if (sharedSecret == null) { throw new ArgumentNullException("sharedSecret"); } Uploaders.Register(new UploadToOneTrueError(oneTrueHost, appKey, sharedSecret)); }
/// <summary> /// Configure uploads /// </summary> /// <param name="coderrServerAddress">Host. Host and absolute path to the codeRR server</param> /// <param name="appKey">Appkey from the web site</param> /// <param name="sharedSecret">Shared secret from the web site</param> public void Credentials(Uri coderrServerAddress, string appKey, string sharedSecret) { if (coderrServerAddress == null) { throw new ArgumentNullException(nameof(coderrServerAddress)); } if (appKey == null) { throw new ArgumentNullException(nameof(appKey)); } if (sharedSecret == null) { throw new ArgumentNullException(nameof(sharedSecret)); } if (ApplicationVersion == null) { AssignAssemblyVersion(Assembly.GetCallingAssembly()); } Uploaders.Register(new UploadToCoderr(coderrServerAddress, appKey, sharedSecret)); }