C# Class Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.BusinessLogic.ActionMappingLogic

Inheritance: IActionMappingLogic
Exibir arquivo Open project: Azure/azure-iot-remote-monitoring Class Usage Examples

Public Methods

Method Description
ActionMappingLogic ( IActionMappingRepository actionMappingRepository, IDeviceRulesRepository rulesRepository ) : System.Collections.Generic
GetActionIdFromRuleOutputAsync ( string ruleOutput ) : Task
GetAllMappingsAsync ( ) : Task>
GetAvailableRuleOutputsAsync ( ) : Task>
InitializeDataIfNecessaryAsync ( ) : Task

Creates initial, default action mapping data.

IsInitializationNeededAsync ( ) : Task
SaveMappingAsync ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.ActionMapping action ) : System.Threading.Tasks.Task

Method Details

ActionMappingLogic() public method

public ActionMappingLogic ( IActionMappingRepository actionMappingRepository, IDeviceRulesRepository rulesRepository ) : System.Collections.Generic
actionMappingRepository IActionMappingRepository
rulesRepository IDeviceRulesRepository
return System.Collections.Generic

GetActionIdFromRuleOutputAsync() public method

public GetActionIdFromRuleOutputAsync ( string ruleOutput ) : Task
ruleOutput string
return Task

GetAllMappingsAsync() public method

public GetAllMappingsAsync ( ) : Task>
return Task>

GetAvailableRuleOutputsAsync() public method

public GetAvailableRuleOutputsAsync ( ) : Task>
return Task>

InitializeDataIfNecessaryAsync() public method

Creates initial, default action mapping data.
public InitializeDataIfNecessaryAsync ( ) : Task
return Task

IsInitializationNeededAsync() public method

public IsInitializationNeededAsync ( ) : Task
return Task

SaveMappingAsync() public method

public SaveMappingAsync ( Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.ActionMapping action ) : System.Threading.Tasks.Task
action Microsoft.Azure.Devices.Applications.RemoteMonitoring.DeviceAdmin.Infrastructure.Models.ActionMapping
return System.Threading.Tasks.Task