C# Class SharpRaven.Utilities.GzipUtil

显示文件 Open project: getsentry/raven-csharp

Public Methods

Method Description
Write ( string json, Stream stream ) : void

Compress a JSON string with base-64 encoded gzip compressed string.

WriteAsync ( string json, Stream stream ) : Task

Compress a JSON string with base-64 encoded gzip compressed string.

Method Details

Write() public static method

Compress a JSON string with base-64 encoded gzip compressed string.
public static Write ( string json, Stream stream ) : void
json string The JSON to write.
stream Stream The stream.
return void

WriteAsync() public static method

Compress a JSON string with base-64 encoded gzip compressed string.
public static WriteAsync ( string json, Stream stream ) : Task
json string The JSON to write.
stream Stream The stream.
return Task