public override void ReceivedAllData(byte[] buffer) { if (!Contents.LoadData(buffer, this)) { // Failed: Failed(500); } }
/// <summary>Called by the file handler when the contents are available.</summary> public override void ReceivedData(byte[] buffer, int offset, int count) { if (Contents.LoadData(buffer, this)) { // Base: base.ReceivedData(buffer, offset, count); } else { // Failed: Failed(500); } }