-
-
Notifications
You must be signed in to change notification settings - Fork 460
Closed
Description
Problem
MagicOnion seems to just use simple type name for services, rather than the full type name (including namespace). For example:
namespace MySystem.Manager.Admin.Employee
{
public interface IProfileAccess {}
}
namespace MySystem.Manager.Admin.Employee
{
public interface IProfileAccess {}
}Options
Option A - Naming Convention (PREFERRED)
Something like this:
builder.Services.AddMagicOnion(options =>
{
options.ServiceDefinitionConfig.NameStrategy = (Type type) => type.FullName;
});Option B - Attribute
Provide an attribute that can be applied to the service interface with a string that becomes the service name.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels