Dispose() public method

public Dispose ( ) : void
return void
Beispiel #1
0
        public void Teardown()
        {
            try
            {
                if (_proxy != null)
                {
                    _proxy.Dispose();
                }
            }
            catch (Exception)
            {
            }

            _proxy = null;
            if (_domain != null)
            {
                AppDomain.Unload(_domain);
                _domain = null;
            }
        }