Posts Tagged ‘HttpClient’

Got really bored looking this up every time

In startup.cs add the following

config.Services.Replace(typeof(IExceptionHandler), new MyExceptionHandler());
public class MyExceptionHandler : ExceptionHandler 
{ 
    public override void Handle(ExceptionHandlerContext context) 
    { 
       Console.WriteLine(""); 
       base.Handle(context); 
     }
 }
Advertisements

The future of HTML is bleak.

Is the replacement already here? Well maybe, just bare with me for a while.

Basically instead of sending html code, send back the picture. Sound familiar that’s cause it is. It is basically just Remote Desktop but only for applications with internet optimized features (like streams).

Whats needed:
Almost identical to the current Remote Desktop idea so reuse what can be.
Support of direct streams. One obvious streams are direct video/sound, file download/uploading.
Clients to support the view plugin (there is already a skew of remote desktop apps)
Server to efficiently compress streams and images.
Server should be able to function with application, video level could pick up the intercepts, same as remote desktop.

Advantages:

(more…)

Using Rest with Windows Phone 8

As of Feb 2013 you can now use similar code for both Windows apps and Windows Phone programming when using a RESTFUL service (see here for full details).

 

Assuming you already have a phone app ready to go then all you need to do is (if not run the create your first windows 8 phone app):

1. Use JNuGet to fetch the Http Client package provided by Microsoft. This will give you the System.Net-Http namespace.

Fetch System.Net.Http namespace for windows phone 8

Fetch System.Net.Http namespace for windows phone 8

2. For the UI Add the following to the xaml page for some ui help

(more…)