C# Class BudgetAnalyser.Engine.Services.WidgetService

Inheritance: IWidgetService
Afficher le fichier Open project: Benrnz/BudgetAnalyser

Méthodes publiques

Méthode Description
Create ( string fullName, string bucketCode ) : IUserDefinedWidget

Create a new widget with the given parameters. This is used to instantiate the IUserDefinedWidgets. These can only be created after receiving the application state.

PrepareWidgets ( IEnumerable storedStates ) : IEnumerable

Prepares the widgets.

Remove ( IUserDefinedWidget widget ) : void

Removes the specified widget.

WidgetService ( [ widgetRepo, [ logger ) : System

Initializes a new instance of the WidgetService class.

Private Methods

Méthode Description
CreateMultiInstanceWidget ( MultiInstanceWidgetState multiInstanceState ) : void

Method Details

Create() public méthode

Create a new widget with the given parameters. This is used to instantiate the IUserDefinedWidgets. These can only be created after receiving the application state.
public Create ( string fullName, string bucketCode ) : IUserDefinedWidget
fullName string The full type name of the widget type.
bucketCode string A unique identifier for the instance
Résultat IUserDefinedWidget

PrepareWidgets() public méthode

Prepares the widgets.
public PrepareWidgets ( IEnumerable storedStates ) : IEnumerable
storedStates IEnumerable The stored application state for widgets.
Résultat IEnumerable

Remove() public méthode

Removes the specified widget.
public Remove ( IUserDefinedWidget widget ) : void
widget IUserDefinedWidget
Résultat void

WidgetService() public méthode

Initializes a new instance of the WidgetService class.
///
public WidgetService ( [ widgetRepo, [ logger ) : System
widgetRepo [ The widget repository.
logger [ The logger.
Résultat System