/// <summary> /// Get roles /// </summary> /// <returns></returns> public async Task Initialize() { var roles = await _roleService.GetRolesAsync(); _inputModuleCollection = _inputModuleFactory.GetModuleCollection(roles); this.Start(); }
public async Task <OperatorRoles> LoadOperatorRoles() { var opInitTask = _opInputService.Initialize(); var roleSet = await _roleService.GetRolesAsync(); await opInitTask; return(roleSet); }