Class ServiceCollectionExtensions
Service Collection extensions that provide store registration in Startup.cs - ConfigureServices
Inheritance
System.Object
ServiceCollectionExtensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: BlazorFocused
Assembly: BlazorFocused.Store.dll
Syntax
public static class ServiceCollectionExtensions
Methods
| Improve this Doc View SourceAddStore<T>(IServiceCollection, T)
Registers a new store within the current application
Declaration
public static IServiceCollection AddStore<T>(this IServiceCollection services, T initialData)
where T : class
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | Service Collection being extended |
T | initialData | Initial value of state within the store |
Returns
Type | Description |
---|---|
IServiceCollection |
Type Parameters
Name | Description |
---|---|
T | State being kept within store |