Changing Service Behavior
Last updated
public class CustomXService: XService
{
public override Task<XReturn> XMethod(.., CancellationToken token)
{
// Custom implementation
// Possible to call base.Xmethod(.., token) from custom code.
return xReturn;
}
}builder.Services.AddUcommerce(builder.Configuration)
// ... register other Ucommerce components first
.Build();
builder.Services.AddUnique<IXService, CustomXService>();