示例#1
0
 public override void ReceivedAllData(byte[] buffer)
 {
     if (!Contents.LoadData(buffer, this))
     {
         // Failed:
         Failed(500);
     }
 }
示例#2
0
 /// <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);
     }
 }