C# Class BudgetAnalyser.Engine.Services.WidgetService

Inheritance: IWidgetService
Show file Open project: Benrnz/BudgetAnalyser

Public Methods

Method 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

Method Description
CreateMultiInstanceWidget ( MultiInstanceWidgetState multiInstanceState ) : void

Method Details

Create() public method

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

PrepareWidgets() public method

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

Remove() public method

Removes the specified widget.
public Remove ( IUserDefinedWidget widget ) : void
widget IUserDefinedWidget
return void

WidgetService() public method

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