Closed jsedlak closed 3 days ago
Currently, Tazor is added in complete with a single statement
builder.Services.AddTazor();
But behind the scenes, this adds a number of services.
public static void AddTazor(this IServiceCollection services) { services.AddScoped<OnlineStatusInterop>(); services.AddScoped<BreakpointInterop>(); services.AddSingleton<INotificationProvider, DefaultNotificationProvider>(); }
Instead, the AddTazor method should return a fluent interface to support adding custom providers:
AddTazor
builder.Services.AddTazor() .WithInMemoryNotifications() .WithGravatarAvatars()
This will allow end-users to add their own providers more easily
Currently, Tazor is added in complete with a single statement
But behind the scenes, this adds a number of services.
Instead, the
AddTazor
method should return a fluent interface to support adding custom providers:This will allow end-users to add their own providers more easily