• Getting Started
  • Tutorials
  • Api Documentation
Show / Hide Table of Contents
  • Onbox.Abstractions.V8
    • IContainer
    • IContainerPipeline
    • IContainerResolver
    • IContainerResolverPipeline
    • IHttpService
    • IJsonService
    • ILoggingService
    • IMapper
    • IMessageService
    • IProgressIndicator
  • Onbox.Core.V8
    • CoreExtensions
    • OnboxExceptionBase
  • Onbox.Core.V8.Http
    • HttpExtensions
    • HttpInterceptor
    • HttpService
    • HttpSettings
    • IHttpInterceptor
  • Onbox.Core.V8.Json
    • JsonExtensions
    • JsonService
  • Onbox.Core.V8.Logging
    • FileLoggingService
    • FileLoggingSettings
  • Onbox.Core.V8.Mapping
    • IMapperActionManager
    • IMapperOperator
    • Mapper
    • MapperActionManager
    • MapperOperator
  • Onbox.Core.V8.Messaging
    • MessageDebugService
  • Onbox.Core.V8.ReactFactory
    • Debouncer
    • Interval
    • ReactFactory
  • Onbox.Core.V8.Reporting
    • ProgressCancelledException
    • ProgressConsoleDebugIndicator
  • Onbox.Di.V8
    • Container
  • Onbox.Mvc.Abstractions.V8
    • IMvcComponent
    • IMvcLifecycleComponent
    • IMvcLifecycleView
    • IMvcView
    • IMvcViewModal
    • IMvcViewModeless
  • Onbox.Mvc.Revit.Abstractions.V8
    • IRevitMvcViewBase
  • Onbox.Mvc.V8
    • TitleVisibility
  • Onbox.Revit.Abstractions.V8
    • IRevitAppData
  • Onbox.Revit.V8
    • ContainerProviderAttribute
    • IRevitContext
    • IRevitExternalApp
    • RevitAppData
    • RevitContainerProviderBase
    • RevitLanguage
  • Onbox.Revit.V8.Applications
    • ContainerPipelineExtensions
    • RevitApp
    • RevitAppBase<TContainer>
  • Onbox.Revit.V8.Async
    • IRevitEventHandler
    • RevitAsyncExtensions
    • RevitAsyncSettings
    • RevitExternalHandler
  • Onbox.Revit.V8.Commands
    • IRevitDestroyableCommand
    • RevitAppCommand<TApplication>
    • RevitContainerCommand<TContainerPipeline>
    • RevitContainerCommandBase<TContainerPipeline, TContainer>
  • Onbox.Revit.V8.ExtensibleStorage
    • AccessLevel
    • IRevitJsonStorage<T>
    • RevitExtensibleStorageEntensions
    • RevitExtensibleStorageSettings
    • RevitJsonStorage<T>
    • RevitSchemaSettings
    • RevitStorageBuilder
  • Onbox.Revit.V8.UI
    • ImageManager
    • IRibbonManager
    • IRibbonPanelManager
    • IRibbonTabManager
    • RibbonHelpers
    • RibbonManager
    • RibbonPanelManager
    • RibbonTabManager
  • Onbox.Store.V8
    • IStorageSubscription
    • IStore<TState>
    • IStoreAction<TState, TSlice>
    • StateEntry<TState>
    • StorageSubscription
    • Store<TState>
    • StoreExtensions

Class Store<TState>

The global state management

Inheritance
System.Object
Store<TState>
Implements
IStore<TState>
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: Onbox.Store.V8
Assembly: Onbox.Store.dll
Syntax
public class Store<TState> : IStore<TState> where TState : class, new()
Type Parameters
Name Description
TState

The type of the global state

Constructors

| Improve this Doc View Source

Store(IMapper, ILoggingService, IJsonService)

The constructor for this implementation of state management

Declaration
public Store(IMapper mapper, ILoggingService logging, IJsonService jsonService)
Parameters
Type Name Description
IMapper mapper
ILoggingService logging
IJsonService jsonService

Methods

| Improve this Doc View Source

DisableLogging()

Disables logging of the state when actions are dispatched

Declaration
public void DisableLogging()
| Improve this Doc View Source

EnableLogging()

Enable logging of the state when actions are dispatched

Declaration
public void EnableLogging()
| Improve this Doc View Source

GetHistory()

Gets the complete history of the global state

Declaration
public List<StateEntry<TState>> GetHistory()
Returns
Type Description
System.Collections.Generic.List<StateEntry<TState>>
| Improve this Doc View Source

Select<TSlice>(IStoreAction<TState, TSlice>)

Selects a specific slice of the global state

Declaration
public TSlice Select<TSlice>(IStoreAction<TState, TSlice> action)
    where TSlice : class, new()
Parameters
Type Name Description
IStoreAction<TState, TSlice> action

The action responsible for the slice

Returns
Type Description
TSlice
Type Parameters
Name Description
TSlice

The type of the slice

| Improve this Doc View Source

SetState<TSlice>(IStoreAction<TState, TSlice>, TSlice)

Sets a specific slice of the global state

Declaration
public void SetState<TSlice>(IStoreAction<TState, TSlice> action, TSlice slice)
    where TSlice : class, new()
Parameters
Type Name Description
IStoreAction<TState, TSlice> action

The action responsible for the slice

TSlice slice

The new state to be dispatched

Type Parameters
Name Description
TSlice

The type of the slice that will be changed

| Improve this Doc View Source

Subscribe<TSlice>(IStoreAction<TState, TSlice>, Action<TSlice>)

Subscribe to a specifc slice of the global state

Declaration
public IStorageSubscription Subscribe<TSlice>(IStoreAction<TState, TSlice> action, Action<TSlice> callback)
    where TSlice : class, new()
Parameters
Type Name Description
IStoreAction<TState, TSlice> action

The action responsible for the slice

System.Action<TSlice> callback

The callback perfomerd when the slice is changed

Returns
Type Description
IStorageSubscription
Type Parameters
Name Description
TSlice

The type of the slice

Implements

IStore<TState>
  • Improve this Doc
  • View Source
Back to top Generated by DocFX