public async Task Delete(int id)
        {
            var findEmployee = _employeeService.FindbyId(id);

            if (findEmployee != null)
            {
                await _employeeService.DeleteAsync(findEmployee);
            }

            DebugDump.DLog("http://localhost:5000/api/employees - [Employees - DELETE] Item: ");
            DebugDump.CLog("http://localhost:5000/api/employees - [Employees - DELETE] Item: ");
        }
        public async Task <ICollection <Employee> > Get()
        {
            var ret = await _employeeService.GetAllAsync();

            DebugDump.CLog("[Employees - GET ALL] " + ret.Count);
            ret.DDump("http://localhost:5000/api/employees [Employees - GET ALL] ");
            ret.CDump("http://localhost:5000/api/employees [Employees - GET ALL] ");

            //console.table(resData.slice(0, 5));

            return(ret);

            ;
        }
        private void Handle_LaunchRemotePlay(object sender, RoutedEventArgs e)
        {
            ResetErrorMessages();

            //This one is just a warning, as I suspect that other PS4 controllers might have other Ids
            DetectPlaystationController();

            bool IsGoodRemotePlayPath = ValidateRemotePlayPath();
            bool IsGoodRewasd         = ValidateRewasdUninstalled();

            if (!IsGoodRemotePlayPath)
            {
                return;
            }

            if (!IsGoodRewasd)
            {
                return;
            }

            ApplicationSettings.GetInstance().RemotePlayPath = RemotePlayTextBox.Text;

            DebugDump.Dump();

            Window window = System.Windows.Application.Current.MainWindow;

            ((MainWindowView)window).WelcomeStep1Done_SetupChecked();

            //element defined in xaml
            emulationPickerControl.GetValueAndSaveValueInApplicationSettings();

            //////////////////////////////////////////////////////////////////

            // the below is kinda ASYNC so be sure to do this last
            StartRemotePlayAndConditionallyInject();
        }
Example #4
0
        public void Dump()
        {
            _endLevel = _player.Level.Save();

            var dump = new DebugDump
            {
                StartLevel = _startLevel,
                EndLevel   = _endLevel,
                UserId     = _player.UserId,
                Commands   = _commands
            };

            var json = JsonConvert.SerializeObject(dump, new JsonSerializerSettings
            {
                Formatting       = Formatting.Indented,
                ContractResolver = new CommandContractResolver()
            });

            lock (_startLevel)
            {
                Directory.CreateDirectory("Dumps");
                File.WriteAllText("Dumps/" + _player.UserId + ".json", json);
            }
        }