Esempio n. 1
0
		public Adapter( string url, NetworkCredential networkCredential, AccountCredential accountCredential )
		{
			if( url == null )
				throw new ArgumentNullException( "url" );

			if( networkCredential == null )
				throw new ArgumentNullException( "networkCredential" );

			this._Connector		= new Connector( url, this.BuildAuthNetworkCredential( networkCredential ), accountCredential );
			this._LoginID		= networkCredential.UserName;
			this._Organization	= networkCredential.Domain;

			RvLogger.Write( LogModule.ICM, LogLevel.Info, "Created new ICM adapter [Url '{0}'; NetworkCredential : Username '{1}', Organization {2}; AccountCredential : Username '{1}'",
				url, networkCredential.UserName, networkCredential.Domain,
				accountCredential.Username);
		}
Esempio n. 2
0
		/// <summary>
		/// Construct new instance of ICM connector
		/// </summary>
		/// <param name="address">ICM server Url base address</param>
		/// <param name="networkCredential">Network credentials for connect to the ICM server</param>
		/// <param name="accountCredential">Account credentials for connect to the ICM server</param>
		public Connector( string address, NetworkCredential networkCredential, AccountCredential accountCredential )
			: this( address, networkCredential )
		{
			this.AccountCredential = accountCredential;
		}