Developer Code Samples

Contributions
Requests
Favorites
Sort By:

This sample shows how to enable CORS (Cross-Origin Resource Sharing) in an ASP.NET Web API project
This sample shows how another way to enable CORS (Cross-Origin Resource Sharing) in an ASP.NET Web API project, both on a global level (using a message handler) or on a per-action basis (using a filter and an action selector).
An IDispatchMessageInspector implementation which shows how to get the actual message body for non-XML messages (i.e., JSON, binary) in a WCF REST service.
This sample shows how another way to enable CORS (Cross-Origin Resource Sharing) in an ASP.NET Web API project, on a per-action basis.
This sample shows how to use a custom IHttpControllerFactory to relax some of the restrictions on controller classes imposed by default on ASP.NET Web APIs
Example showing how WCF message formatters can be used to support different serialization formats (in this case, the JSON.NET serializer) for operation parameters.
An ASP.NET Web API which can be used to convert between a JSON document and a class graph which can be used to generate / consume JSON documents in the same format.
This sample shows how to implement support for CORS (Cross-Origin Resource Sharing) in WCF, a protocol which allow for CORS-enabled browsers to make requests to a WCF service which resides in a different domain than the one from which the HTML page originated.
This sample shows how to create a lambda-based web service using the ASP.NET Web APIs.
An implementation of a custom serializer for WCF services, using a contract behavior to hook it up on the client and the server.
1 - 10 of 48 Items   
0 results
No sample requests were found.
No favorites have been added.