예제 #1
0
        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            try
            {
                _client.Close();
            }
            catch (Exception ex)
            {
                Log.Debug(ex.Message);
                _client.Abort();
            }

            this._client = null;
            GC.SuppressFinalize(this);
        }
예제 #2
0
        /// <summary>
        /// Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
        /// </summary>
        public void Dispose()
        {
            try
            {
                _client.Close();
            }
            catch (Exception ex)
            {
                Log.Debug(string.Format("SaltServiceProxy:Dispose error {0}", ex.Message));
                _client.Abort();
            }

            this._client = null;
            GC.SuppressFinalize(this);
        }
예제 #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaltServiceAgent" /> class.
 /// </summary>
 public SaltServiceProxy()
 {
     _client = new SaltServiceClient("BasicHttpBinding_ISALTService");
 }
예제 #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SaltServiceAgent" /> class.
 /// </summary>
 public SaltServiceProxy()
 {
     _client = new SaltServiceClient();
 }