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)); }
private async Task <RegisteredCommandData> GetOrCreateCommandData(ICommandRegistration command) { var commandData = await m_CommandDataStore.GetRegisteredCommandAsync(command.Id); return(commandData ?? CreateDefaultCommandData(command)); }