public void SetBody(byte[] buffer) { if (buffer == null) { throw new ArgumentNullException("buffer"); } using (var data = new CFDataBuffer(buffer)) CFHTTPMessageSetBody(Handle, data.Handle); }
public void SetBody(byte[] buffer) { using (var data = new CFDataBuffer(buffer)) CFHTTPMessageSetBody(Handle, data.Handle); }
public void SetBody(byte[] buffer) { ThrowIfDisposed(); using (var data = new CFDataBuffer(buffer)) CFHTTPMessageSetBody(Handle, data.Handle); }