Click or drag to resize

Jdenticon.AspNet.WebApi Namespace

Classes for using Jdenticon from ASP.NET WebApi.
Classes
  ClassDescription
Public classIdenticonResult
Defines a result that will render and return an identicon.
Examples

To use Jdenticon from ASP.NET WebApi, install the Jdenticon.AspNet.WebApi NuGet package.

NuGet Package Manager
PM> Install-Package Jdenticon.AspNet.WebApi

The IdenticonResult class is then available to return an identicon from a WebApi controller action.

Api controller
public class IdenticonController : ApiController
{
    public IdenticonResult Get(string name, int size)
    {
        return IdenticonResult.FromValue(name, size);
    }
}