Example #1
0
        private async Task <RegisteredCommandData> GetOrCreateCommandData(ICommandRegistration command)
        {
            if (command == null)
            {
                throw new ArgumentNullException(nameof(command));
            }

            var commandData = await m_CommandDataStore.GetRegisteredCommandAsync(command.Id);

            return(commandData ?? CreateDefaultCommandData(command));
        }
Example #2
0
        private async Task <RegisteredCommandData> GetOrCreateCommandData(ICommandRegistration command)
        {
            var commandData = await m_CommandDataStore.GetRegisteredCommandAsync(command.Id);

            return(commandData ?? CreateDefaultCommandData(command));
        }