• 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

Interface IStore<TState>

The global state management

Namespace: Onbox.Store.V8
Assembly: Onbox.Store.dll
Syntax
public interface IStore<TState>
    where TState : class, new()
Type Parameters
Name Description
TState

The type of the global state

Methods

| Improve this Doc View Source

DisableLogging()

Disables logging of the state when actions are dispatched

Declaration
void DisableLogging()
| Improve this Doc View Source

EnableLogging()

Enable logging of the state when actions are dispatched

Declaration
void EnableLogging()
| Improve this Doc View Source

GetHistory()

Gets the complete history of the global state

Declaration
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
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
void SetState<TSlice>(IStoreAction<TState, TSlice> action, TSlice state)
    where TSlice : class, new()
Parameters
Type Name Description
IStoreAction<TState, TSlice> action

The action responsible for the slice

TSlice state

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
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

  • Improve this Doc
  • View Source
Back to top Generated by DocFX