C# Класс BudgetAnalyser.Engine.Services.WidgetService

Наследование: IWidgetService
Показать файл Открыть проект

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
CreateMultiInstanceWidget ( MultiInstanceWidgetState multiInstanceState ) : void

Описание методов

Create() публичный Метод

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
Результат IUserDefinedWidget

PrepareWidgets() публичный Метод

Prepares the widgets.
public PrepareWidgets ( IEnumerable storedStates ) : IEnumerable
storedStates IEnumerable The stored application state for widgets.
Результат IEnumerable

Remove() публичный Метод

Removes the specified widget.
public Remove ( IUserDefinedWidget widget ) : void
widget IUserDefinedWidget
Результат void

WidgetService() публичный Метод

Initializes a new instance of the WidgetService class.
///
public WidgetService ( [ widgetRepo, [ logger ) : System
widgetRepo [ The widget repository.
logger [ The logger.
Результат System