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

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

            await opInitTask;

            return(roleSet);
        }