Show / Hide Table of Contents

    Class SubscribedMethod

    A subscribed method that can process certain messages.

    Inheritance
    object
    SubscribedMethod
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Subscribers
    Assembly: Silverback.Core.dll
    Syntax
    public class SubscribedMethod

    Constructors

    | Improve this doc View source

    SubscribedMethod(Func<IServiceProvider, object>, MethodInfo, SubscriptionOptions)

    Initializes a new instance of the SubscribedMethod class.

    Declaration
    public SubscribedMethod(Func<IServiceProvider, object> targetTypeFactory, MethodInfo methodInfo, SubscriptionOptions options)
    Parameters
    Type Name Description
    Func<IServiceProvider, object> targetTypeFactory

    The delegate to be used to resolve an instantiate of the type declaring the subscribed method.

    MethodInfo methodInfo

    The MethodInfo related to the subscribed method.

    SubscriptionOptions options

    The SubscriptionOptions.

    Properties

    | Improve this doc View source

    AdditionalArgumentsResolvers

    Gets the list of IAdditionalArgumentResolver to be used to invoke the method.

    Declaration
    public IReadOnlyList<IAdditionalArgumentResolver> AdditionalArgumentsResolvers { get; }
    Property Value
    Type Description
    IReadOnlyList<IAdditionalArgumentResolver>
    | Improve this doc View source

    MessageArgumentResolver

    Gets the IMessageArgumentResolver to be used to invoke the method.

    Declaration
    public IMessageArgumentResolver MessageArgumentResolver { get; }
    Property Value
    Type Description
    IMessageArgumentResolver
    | Improve this doc View source

    MessageArgumentType

    Gets the type of the message argument (e.g. MyMessage or IEnumerable<MyMessage>).

    Declaration
    public Type MessageArgumentType { get; }
    Property Value
    Type Description
    Type
    | Improve this doc View source

    MessageType

    Gets the type of the message (or envelope) being subscribe.

    Declaration
    public Type MessageType { get; }
    Property Value
    Type Description
    Type
    | Improve this doc View source

    MethodInfo

    Gets the MethodInfo related to the subscribed method.

    Declaration
    public MethodInfo MethodInfo { get; }
    Property Value
    Type Description
    MethodInfo
    | Improve this doc View source

    Options

    Gets the SubscriptionOptions.

    Declaration
    public SubscriptionOptions Options { get; }
    Property Value
    Type Description
    SubscriptionOptions
    | Improve this doc View source

    Parameters

    Gets the ParameterInfo for each parameter of the subscribed method.

    Declaration
    public IReadOnlyList<ParameterInfo> Parameters { get; }
    Property Value
    Type Description
    IReadOnlyList<ParameterInfo>

    Methods

    | Improve this doc View source

    ResolveTargetType(IServiceProvider)

    Resolves an instantiate of the type declaring the subscribed method.

    Declaration
    public object ResolveTargetType(IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    IServiceProvider serviceProvider

    The IServiceProvider to be used to resolve the type or the necessary services.

    Returns
    Type Description
    object

    The target type .

    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini