public void Dispose()
        {
            _clientChannel.Dispose();

            try
            {
                var requestFilePath = Path.Combine(_directory, _requestFile);

                if (File.Exists(requestFilePath))
                {
                    File.Delete(requestFilePath);
                }
            }
            catch
            {
            }

            try
            {
                var replyFilePath = Path.Combine(_directory, _replyFile);

                if (File.Exists(replyFilePath))
                {
                    File.Delete(replyFilePath);
                }
            }
            catch
            {
            }
        }
示例#2
0
 public void Dispose()
 {
     _serverChannel.Dispose();
 }