You need to complete the code to meet the requirements.

DRAG DROP
You are developing an ASP.NET MVC Web API application.
The application must meet the following requirements:
 It must send or receive data without the use of a buffer.
 It must allow up to 1 MB of data to be received.
 It must allow up to 2 MB of data to be sent.
You need to complete the code to meet the requirements.What should you do? (To answer, drag the appropriate code segments to the correct location or
locations in the answer area. Each code segment may be used once, more than once, or not at all. You
may need to drag the split bar between panes or scroll to view content.)

DRAG DROP
You are developing an ASP.NET MVC Web API application.
The application must meet the following requirements:
 It must send or receive data without the use of a buffer.
 It must allow up to 1 MB of data to be received.
 It must allow up to 2 MB of data to be sent.
You need to complete the code to meet the requirements.What should you do? (To answer, drag the appropriate code segments to the correct location or
locations in the answer area. Each code segment may be used once, more than once, or not at all. You
may need to drag the split bar between panes or scroll to view content.)

Answer:



Leave a Reply 4

Your email address will not be published. Required fields are marked *


TD

TD

1) config.MaxBufferSize
2) config.MaxReceivedMessageSize
3) config.TransferMode = TransferMode.Streamed

https://msdn.microsoft.com/en-us/library/system.servicemodel.transfermode(v=vs.110).aspx

Streamed transfers only buffer the message headers and expose the message body as a stream, from which smaller portions can be read at a time.

Miguel Costa

Miguel Costa

1) config.MaxReceivedMessageSize
2) config.MaxBufferSize
3) config.TransferMode = TransferMode.Streamed

Miguel Costa

Miguel Costa

Sorry, TD is rigth!

Jeroen Vantroyen

Jeroen Vantroyen

TD is correct