Skip to content

Auto-Discovery Should Register Shorthand Types #394

Closed
@jaredcnance

Description

@jaredcnance

Description

Service and repository shorthand types (e.g. FooService : IResourceService<Foo>) should also be registered. Currently, they are missing:

RegisterServiceImplementations(assembly, typeof(IResourceService<,>));
RegisterServiceImplementations(assembly, typeof(ICreateService<,>));
RegisterServiceImplementations(assembly, typeof(IGetAllService<,>));
RegisterServiceImplementations(assembly, typeof(IGetByIdService<,>));
RegisterServiceImplementations(assembly, typeof(IGetRelationshipService<,>));
RegisterServiceImplementations(assembly, typeof(IUpdateService<,>));
RegisterServiceImplementations(assembly, typeof(IDeleteService<,>));

The solution should also take #384 into consideration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions