Index

image  A

Action methods

    benefits

    CarsContext class

    CarsController

    DELETE

    error responses

        built-in mechanism

        CarsController class

        CreateErrorResponse extension method

        GetCars action method

        GET request

        HttpError class

        IncludeErrorDetailPolicy

        internal server error

    GET request

    implementation

    POST request

    PUT

    response message

        DELETE request

        GET request

        HttpResponseMessage

    return values

        error responses

        HTTP exception (HttpResponseException)

        object

        response message

    selection

        action-based routing

        HTTP method–based routing

        IHttpActionSelector interface

        providers

        SelectAction method

        selector and NonActionAttribute

    Web API Route registration

ASP.NET Web API. See also Asynchronous actions

    ActionResult type

    advantages

    API Governance

        full-blown REST API

        logging/tracing

        microversioning

        publish schemas

        quality of service

        top-notch documentation

    architectural features

        asynchronous programming model

        built-in support

        HttpConfiguration class

        HttpContext.Current

        replicating

        self-hosted

        ultimate testability

    client-server communication in RPC

    CQRS

    DDD (see Domain-Driven Design (DDD))

    elements

        controllers/actions

        filters

        formatting/content negotiation

        message handlers

        parameter, model/binding

        routing

    generic request/response

    HTTP (see also HyperText Transfer Protocol (HTTP))

    libraries

        JSON

        NuGet packages

    Model-View-Controller

    modern architecture

        cloud services

        middleware/internal API

        public API

        self-hosted HTTP Server

        smartphones

        SPA

    OSS

    pipe-and-filter pipeline

        HttpControllerDispatcher

        HttpMessageHandler

    REST

    server-side views

    site name anonymized

    SOAP (see Simple Object Application Protocol (SOAP))

    transactions

    URI

    WCF (see Windows Communication Foundation (WCF))

    Web Services Extensions

        software vendors

        WS-I Basic Profile 1.0

ASP.NET Web API service. See also HttpClient; HttpContent

    HttpRequestMessage

        constructors

        custom header

        HttpRequestHeaders

        instantiation

        properties

        System.Net.Http namespace

        ToString method

    HttpResponseMessage

        properties

        public signature

    servers and clients

Asynchronous actions

    database calls

        action method

        asynchronous call

        connection string

        controller action

        default route

        entity class

        extension method

        query operations and returns results

        SQL Server-script

        synchronous call

    file uploads

        API controller

        console client

    HTTP requests

        Application_Start method

        asynchronous call

        controller action

        synchronous version

    HttpResponseMessage

    multiple operations

        action-based route

        benchmarking results

        client application

        controller action

        implementation-client

        public method

    Web API controller

Authorization filters

    AuthorizationFilterAttribute class

    AuthorizeAttribute

        access-certain users

        AllowAnonymousAttribute

        AuthController implementation

        AuthorizationService implementation

        CarsController implementation

        conditions

        fiddler view

        FormsAuthenticationService

        global filter

        jQuery code

        view-cars list

        web page

    require SSL authorization

        CarsController

        properties dialog box

        RequireHttpsAttribute

        response message

image  B

image  C

Caching resources

    origin server

        cache-control header

        no-cache directive

    updates and deletions

    validation

        conditional GET request

        ETag header

        last-modified header

        Vary and ETag header

C# features

    asynchronous functions

    await and async expressions

    exception handling

        detail view

        multiple asynchronous operation

    multiple operation

    SynchronizationContext

        ASP.NET MVC application

        async and await keywords

        HTTP API .NET client

        new look

        Razor view

        web page

    UI application

Custom validation attributes

    creation

    error message

    GreaterThanAttribute

        Car class

        implementation

        initial implementation

        invalid POST

        IsValid method

        valid POST

    IValidatableObject

        implementation

        interface

        invalid POST

        valid POST request

    ValidationAttribute

image  D

Data annotation validation attributes

    EmailAddressAttribute

        GET request

        invaild POST

        PeopleController

        Person class

        vaild POST

    MaxLength and MinLength

        Car class

        GET request

        invalid POST request

        valid POST request

    RangeAttribute

        Car class

        DateTime field

        invalid POST request

    RegularExpressionAttribute

        Car class

        error message-POST

        valid POST

    RequiredAttribute

        Car class

        CarsContext class

        controller implementation

        IRequiredMemberSelector

        POST request

        properties

        SuppressedRequiredMemberSelector

        validation error

        value types

    StringLengthAttribute

        custom error message

        invalid POST request

        properties

        resource file

        ValidationErrors resource file view

        validation message

    ValidationAttribute class

Dependency resolution

    dependency injection (DI)

        abstract type

        constructor

        DRY

        factory pattern

        inversion of control (IoC)

        lifetime scope

        registration

        service locator

        SOLID

        YAGNI

    DependencyResolver

        for AutoFac

        for Castle Windsor

        model

        NInject

        for Unity

    model in ASP.Net web API

        HttpRequestMessage and IDependencyScope

        IDependencyResolver and IDependencyScope

        typical scenario

    service location

        ServicesContainer class

Domain model

    DbContext class

        EntitiesContext

        parameterless constructor

        String connection

    EF (see Object-relational mapping (ORM) framework)

    Entities/DbContext Implementation

        Affiliate class

        Modified User class

        ShipmentState class

        ShipmentType class

    Entity Framework Migrations

        Configuration.cs file

        Default project

        PMC

        Seed method

    Entity objects

        database schema

        POCO classes

    Object-relational mapping (ORM) framework

        advantages

        IEntity Interface

        NuGet package

        Role class membership system

        User class membership system

        UserInRole Class membership system

        validation attributes

    Repository Pattern

        EntityRepository<T> class

        FindBy method

        GetSingle method

        IEntityRepository Interface

        IQueryable Interface

        PaginatedList Class

    service layer

        CreateUser method

        CryptoService

        IMembershipService Interface

        ValidateUser method

image  E

image  F

Filters See also Registering filters

    action filters

        ActionFilterAttribute abstract class

        HttpActionContext class

        HttpActionExecutedContext class

        ModelState validation

    authorization filters

        AuthorizationFilterAttribute class

        AuthorizeAttribute

        require SSL authorization

    exception filters

        abstract class

        CarsController

        HandleErrorAttribute

        output window

    execution order

        action results

        controller

        different implementation

        GlobalLogger action filter

        LoggerAttribute

        LoggerUtil class

        output window

        SecondaryLogger action filter

        SecondaryLoggerAttribute

    message handlers

    overview and processing model

        CarsContext class

        controller implementation

        default implementation

        execution order

        FilterScope enum

        LoggerAttribute

        log method

        types

Formatter processing models. See also Media type formatters

    BufferedMediaTypeFormatter

    configuration

        change option

        existing formatter modification

        new formatter registeration

        remove formatters

    content negotiation algorithm

        content-type header set

        German language and JSON format

        PNG image representation

        product property scenario

        save bandwith

        UTF-8 Charset

    custom formatters

        CSVMediaTypeFormatter

        JsonpMediaTypeFormatter

    customizing model binder

        IModelBinder

        IValueProvider

    defult model binder

    FormUrlEncodedMediaTypeFormatter

        debugging result

        HTML form

        Post method

        Submit button

        XMLMediaTypeFormatter

    JQueryMvcFormUrlEncodedFormatter

        debugging output

        HTML form

        Post method

    JsonMediaTypeFormatter

        camel case

        Indent MaxDepth properties

        properties and methods

    MediaTypeMapping

        content negotiation

        defult type

        QueryStringMapping

        RequestHeaderMapping

        RouteDataMapping

        UriPathExtensionMapping

    model binder mechanism

        API controller

        controller method

        GET request

        parsing QueryString parameter

        PUT request

        request body content

        search class implementation

    overview

    XMLMediaTypeFormatter

image  G

image  H

HTTP API application

    configuration

        Configure method

        Data Annotations validation

        IContentNegotiator service

        IRequiredMemberSelector implementation

        RequiredMemberSelector properties

    controllers, types

    DTO classes

        IDto interface

        IPaginatedDto interface

        PaginatedDto class

        ShipmentDto class

        ShipmentStateDto class

    IoC container

        DbContext instance

        IMembershipService implementation

        MembershipService and CryptoService

        RegisterServices method

        Repository registration

        UsingConstructor method

    PingYourPackage.API.Model project

    request commands

        IRequestCommand interface

        PaginatedRequestCommand class

        parameter binding rules

    request models

    routes

        GuidRouteConstraint implementation

        RegisterRoutes method

    security

        AuthorizeAttribute

        BasicAuthenticationHandler

        PingYourPackageAuthHandler

        RequireHttpsMessageHandler

        SendAsync method

        WebAPIConfig.Configure method

        WebAPIDoodle

    ShipmentsController

        AuthorizeAttribute

        BindShipmentAttribute implementation

        Constants class

        DeleteShipment action method

        EmptyParameterFilterAttribute class

        EnsureShipmentOwnershipAttribute

        GetResponseAsync

        GetShipments action method

        GetShipments class

        HttpConfiguration object

        HttpRequestMessageHelper class

        IntegrationTestHelper class

        IShipmentService implementation

        mapping

        NullCurrentPrincipalAttribute

        per-route message handler

        PostShipment action method

        PutShipment action method

        ServicesMockHelper class

        ToShipmentDto extension method

    validation attributes

        action filter

        MaximumAttribute class

        MinimumAttribute class

HttpContent

    CompressedContent

        Deflate content encoding

        gzip

        HttpCompressionHandler

        output

        use of

    HttpContent class

        abstract base class

        base class

        Content-Location header

        CopyToAsync methods

        CreateContentReadStreamAsync method

        customer representation

        HttpContentHeaders class

        IEnumerable interface

        output

        properties

        SerializeToStreamAsync method

        StringContent

HTTP-level caching

    ASP.NET Web API

    invalidation-HttpCachingHandler

        conditional GET request

        final implementation

        GET request

        initial class

        POST request

        PUT request

        registration

    message handler

        approach

        cacheable entities

        CacheableEntity class

        conditional GET request

        core structure

        extension method

        GenerateETag method

        GET request

        GetRequestUri method

        GetResourceKey method

        HttpCachingHandler

        HttpCachingHandler class

        POST request

        SendAsync method

    scope

    specification

        mechanism

        origin server

        updates and deletions

        validation

Hypertext Transfer Protocol (HTTP)

    action

        Apress web site

        fiddler

        header fields

        Internet media types

        left section

        302 response

        WebView tab

    cloud-based systems

    communication protocol

    HTTP request

    HTTP response

    HTTP timeline

    methods

        browser and server

        idempotent

        POST

        safe methods

        verbs

    parabolic form

    POST method

    request and response technique

    resources and URIs

    status codes

    W3C

    World Wide Web

Hypertext Transfer Protocol Stack

    kernel caching

        performance counters

        static and dynamic content

    queuing

        ASP.NET MVC 4 Web Application

        concurrent requests

        in IIS

        queue length reduction

        working principle

image  I

Internet Information Services (IIS)

    server configuration

        advanced settings

        application pools

        default configuration

        queue length option

    web server

        architecture-nutshell

        thread pool

        thread starvation

ITraceWriter

    console application

    ConsoleTraceWriter implementation

    interface

    NLog implementation

        event log entry

        logToNLog method

        target

        TraceConfig class

        trace log file

        trace method

        TraceRecord levels

        web.config

    output

    TraceRecord implementation

    user code

        controller action

        .Debug extension method

        log file entry

image  J

image  K

image  L

image  M

Media type formatters

    ASP.NET Web API content negotiation

        accept header

        Car Class Implementation

        DefaultContentNegotiator

        Get method

        MediaTypeFormatter class

        XML representation

image  N

image  O

image  P, Q

PingYourPackage Application

    API project

        AutofacWebAPI.cs class

        IoC container

        NuGet Package Manager

        xUnit.net test

    architecture

    Class Library project

    DbContext object

    domain entities

        affiliate

        PackageReceiver

        shipment

    goals

    overview

    Project structure

        blank solution

        using Visual Studio 2012

    WebHost project

        ASP.NET Web application project

        Global Application Class

    work flow chart

image  R

Registering filters

    controller and action

        action level

        controller level

        .NET attributes

    global filters

Representational State Transfer (REST)

    RESTful architecture

        behavior

        client responses

        content-type header

        HATEOAS

        improvements

        request and response

        responses

    richardson maturity model

    SOA

        customer name

        POST

        response header

        response message

        SOAP request message

        web services

    theory

        cache responses

        client/server constraint

        client side

        constraints and benefits

        fallacies

        layered system

        stateless

        uniform interface

image  S

image  T

Task-based Asynchronous Pattern (TAP)

    Async method

    cancellation

        console window

        GetIntAsync method

        models

        token

    composition

        console window

        ContinueWhenAll method

        static methods

        Task or Task<T>

        task WhenAll

    continuations, errors and task status

        ContinueWith method

        TaskStatus enumeration values

    linked cancellation tokens

        console window

        InternalGetIntAsync method

    operation

    TaskCompletionSource<TResult>

        AsyncFactory.GetIntAsync method

        TaskCompletionSource

        Task.FromResult method

    task instance

    TPL

Tracing and logging

    ASP.NET Web API

        logging

        Microsoft.AspNet.WebApi.Tracing

        TraceManager

    ITraceWriter

        console application

        ConsoleTraceWriter implementation

        interface

        output

        TraceRecord implementation

    NLog (ITraceWrite Implementation)

        event log entry

        logToNLog method

        target

        TraceConfig class

        trace log file

        trace method

        TraceRecord levels

        web.config

    scenarios

    user code(ITraceWriter)

        controller action

        .Debug extension method

        log file entry

image  U

Unit testing

    CRUD API

    filters

    grasp controller

        assertions

        Data Builder’s Fluent API

        Delete method

        GetAll() method

        Get method

        Post method

        Request Context

        Request Property

    message handlers

        SendAsync method

        XHttpMethodOverrideHandler

    NUnit frameworks

    routes

        controller and action selection

        Data-Driven Cases

        GetRouteData method

        GetVirtualPath method

        IHttpRoute

    SPA

    xUnit frameworks

image  V

image  W

Web API documentation

    Cars API

        Car class implementation

        operations

    HTTP API

        ApiExplorer

        hand

    WSDL

Web API routes

    custom route constraint

        /api/cars

        /api/cars/15

        /api/cars/foo

        implementation

        registration code

    default values

    Global.asax file

    HTTP methods and routing

        ApiController

        CarsController.Get method

        ExecuteAsync method

        HttpControllerDispatcher

        request options

        sample controller

    MapHttpRoute extension method

    multiple routes

        /api/SUV/vehicles and 200 response

        /api/SUV/vehicles and 404 response

        controller parameter

        sample code

    optional parameters

    overload method

    regular expression

    route constraints

    sample code

image  X, Y, Z

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.250.11