Example
Imagine that you're using the standard route configuration created by the Visual Studio project template:
name: "API Default", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional }
In that case, you can create an URI to a the resource handled by the FooController.GetById Action Method like this:
var uri = linker.GetUri<FooController>(r => r.GetById(1337));
This will create a URI like this:
http://localhost/api/foo/1337
Drum is a little library for building URIs to ASP.NET Web API actions, using direct routes and lambda expressions. It provides an alternative to the UrlHelper class. Instead of requiring a route name and a set of name-value pairs, Drum allows the creation of URIs using actions invocations.
// using UrlHelper var uri1 = _urlHelper.Link("GetPaged", new { page = 0, count = 10 }); // using UriMaker var uri2 = _uriMaker.UriFor(c => c.GetPaged(0, 10));
where GetPaged
is a Web API controller action
[RoutePrefix("api/UriMakerTests/resources")] public class ResourceController : ApiController { [Route("", Name="GetPaged")] public HttpResponseMessage GetPaged(int page, int count) {...} ... }
کتاب رایگان SOLID Principles Succinctly از انتشارات Syncfusion
There is always room for improving one’s coding ability, and SOLID design principles offer one way to see marked improvements in final output. With SOLID Principles Succinctly, author Gaurav Kumar Arora will instruct you in how to use SOLID principles to take your programming skills to the next level.
meSing.js is a JavaScript singing synthesis library that uses the Web Audio API's DSP capabilities in conjunction with the meSpeak.js speech synthesis library to provide a vocal synthesizer for the web. First, the lyrics with corresponding MIDI notes are parsed and fed to meSpeak.js; the resulting text-to-speech output is then converted into a series of AudioBufferSourceNodes, which are subsequently processed and adjusted for pitch, rhythm, and expression. Demo
This directive is designed to provide a general purpose overlay menu. Floating menu can be used for both flat and nested navigation structures. Desgined to be as simple as possible in order to afford intuitive interactions. Demo
Simple 3D Coverflow is a fully 3D multimedia coverflow slider plugin that allows to display multimedia content with an unique original layout from a 3D perspective. It’s perfect for any kind of presentation, for anyone that wants to deliver a great impact to thier visitors. It runs on all major browsers and mobile devices like iPhone, iPad, IOS, Android and Windows. When a thumbnail is clicked you can choose to do nothing, display multimedia content using our great revolution lightbox or to open a new webpage.