Unosquare
    Show / Hide Table of Contents

    Interface IRequestDataAttribute<TController>

    Represents an attribute, applied to a parameter of a web API controller method, that causes the parameter to be passed deserialized data from a request.

    Namespace: EmbedIO.WebApi
    Syntax
    public interface IRequestDataAttribute<in TController>
        where TController : WebApiController
    Type Parameters
    Name Description
    TController

    The type of the controller.

    Methods

    GetRequestDataAsync(TController, Type, String)

    Asynchronously obtains data from a controller's context.

    Declaration
    Task<object> GetRequestDataAsync(TController controller, Type type, string parameterName)
    Parameters
    Type Name Description
    TController controller

    The controller.

    Type type

    The type of the parameter that has to receive the data.

    String parameterName

    The name of the parameter that has to receive the data.

    Returns
    Type Description
    Task<Object>

    a whose result will be the data to pass as a parameter to a controller method.

    See Also

    IRequestDataAttribute<TController, TData>
    INonNullRequestDataAttribute<TController, TData>

    Comments

    Back to top Copyright © 2017-2019 Unosquare