Table of Contents

Class HandlerServicesDescriptor

Namespace
Savvyio
Assembly
Savvyio.Core.dll

Provides information, in a developer friendly way, about implementations of the IHandler<TRequest> interface such as name, declared members and what type of request they handle.

public class HandlerServicesDescriptor
Inheritance
Object
HandlerServicesDescriptor

Remarks

An example of the output available when calling ToString():

Discovered 1 ICommandHandler implementation covering a total of 5 ICommand methods


Assembly: Savvyio.Assets.Tests
Namespace: Savvyio.Assets

<AccountCommandHandler>
*UpdateAccount --> &<RegisterDelegates>b__5_0
*CreateAccount --> &CreateAccountAsync

Constructors

HandlerServicesDescriptor(IEnumerable<IGrouping<Type, KeyValuePair<Type, List<IHierarchy<Object>>>>>, IEnumerable<Type>)

Initializes a new instance of the HandlerServicesDescriptor class.

public HandlerServicesDescriptor(IEnumerable<IGrouping<Type, KeyValuePair<Type, List<IHierarchy<object>>>>> discoveredServices, IEnumerable<Type> serviceTypes)

Parameters

discoveredServices IEnumerable<IGrouping<Type, KeyValuePair<Type, List<IHierarchy<Object>>>>>

The discovered implementations of the IHandler<TRequest> interface.

serviceTypes IEnumerable<Type>

The registered IHandler<TRequest> service types.

Methods

ToString()

Returns a System.String that represents this instance.

public override string ToString()

Returns

String

A System.String that represents this instance.