4 options here: https://autofaccn.readthedocs.io/en/latest/faq/select-by-context.html
Option 1: Redesign Your Interfaces
ILoggingMessageHandler , IDoSomethingMessageHandler
Option 2: Change the Registrations
builder.Register(ctx => new FinalHandler(ctx.Resolve<LoggingMessageHandler >()));
or
builder.Register(ctx => new FinalHandler(ctx.Resolve<IDoSomethingMessageHandler >()));
Option 3: Use Keyed Services
builder.RegisterType<FinalHandler>()
.WithParameter(
new ResolvedParameter(
(pi, ctx) => pi.ParameterType == typeof(IMessageHandler),
(pi, ctx) => ctx.ResolveKeyed<ISender>("something")));
Option 4: Use Metadata
public class FinalHandler
{
public FinalHandler([WithMetadata("sendBy", "something")] IMessageHandler messageHandler) { ... }
}