Exemple #1
0
        /// <summary>
        /// Get roles
        /// </summary>
        /// <returns></returns>
        public async Task Initialize()
        {
            var roles = await _roleService.GetRolesAsync();

            _inputModuleCollection = _inputModuleFactory.GetModuleCollection(roles);
            this.Start();
        }
Exemple #2
0
        public async Task <OperatorRoles> LoadOperatorRoles()
        {
            var opInitTask = _opInputService.Initialize();
            var roleSet    = await _roleService.GetRolesAsync();

            await opInitTask;

            return(roleSet);
        }