File tree Expand file tree Collapse file tree 1 file changed +3
-23
lines changed
Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Original file line number Diff line number Diff line change 1- // ReSharper disable CheckNamespace
1+ #pragma warning disable IDE0130
2+ // ReSharper disable CheckNamespace
23
34using BlazorLocalTime ;
4- using Microsoft . Extensions . DependencyInjection . Extensions ;
55
66namespace Microsoft . Extensions . DependencyInjection ;
77
@@ -17,27 +17,7 @@ public static class BlazorLocalTimeExtension
1717 /// <returns>The updated service collection.</returns>
1818 public static IServiceCollection AddBlazorLocalTimeService ( this IServiceCollection services )
1919 {
20- return AddBlazorLocalTimeService ( services , TimeProvider . System ) ;
21- }
22-
23- /// <summary>
24- /// Adds the BlazorLocalTime service to the service collection with a custom time provider.
25- /// </summary>
26- /// <param name="services">The service collection.</param>
27- /// <param name="timeProvider">The time provider to use for local time calculations.</param>
28- /// <returns>The updated service collection.</returns>
29- public static IServiceCollection AddBlazorLocalTimeService (
30- this IServiceCollection services ,
31- TimeProvider timeProvider
32- )
33- {
34- return AddBlazorLocalTimeService (
35- services ,
36- option =>
37- {
38- option . TimeProvider = timeProvider ;
39- }
40- ) ;
20+ return AddBlazorLocalTimeService ( services , _ => { } ) ;
4121 }
4222
4323 /// <summary>
You can’t perform that action at this time.
0 commit comments