Closed codeclash closed 5 years ago
Would be nice if you returned IServiceCollection here instead of void
IServiceCollection
void
Old:
public static class ServiceCollectionExtensions { public static void AddStorage(this IServiceCollection col) { col.TryAddScoped<LocalStorage>(); col.TryAddScoped<SessionStorage>(); } }
New:
public static class ServiceCollectionExtensions { public static IServiceCollection AddStorage(this IServiceCollection col) { col.TryAddScoped<LocalStorage>(); col.TryAddScoped<SessionStorage>(); return col; } }
Good idea. Will do that the next time i'm adjusting something.
Will resolve as part of #15 PR
Would be nice if you returned
IServiceCollection
here instead ofvoid
Old:
New: