public void Dispose() { try { reader.Close(); } catch (Exception) { } try { #if !DNXCORE50 streamReader.Close(); #else streamReader.Dispose(); #endif } catch (Exception) { } try { #if !DNXCORE50 stream.Close(); #else stream.Dispose(); #endif } catch (Exception) { } try { request.Dispose(); } catch (Exception) { } }