Example #1
0
 private static bool GetIsStreamingSupported()
 {
     using (var streamingSupported = new Function("return typeof Response !== 'undefined' && 'body' in Response.prototype && typeof ReadableStream === 'function'"))
         return((bool)streamingSupported.Call());
 }
Example #2
0
 static BrowserHttpHandler()
 {
     using (var streamingSupported = new Function("return typeof Response !== 'undefined' && 'body' in Response.prototype && typeof ReadableStream === 'function'"))
         StreamingSupported = (bool)streamingSupported.Call();
 }