aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/FSE/Tango.FSE.UI/RemoteActions/DefaultRemoteActionsProvider.cs
blob: 98256fa3c1f1a12add7a81ec99621e5ddcd55848 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Tango.Core.DI;
using Tango.FSE.Common.Connection;
using Tango.FSE.Common.RemoteActions;
using Tango.PPC.Shared.RemoteActions;

namespace Tango.FSE.UI.RemoteActions
{
    public class DefaultRemoteActionsProvider : IRemoteActionsProvider
    {
        [TangoInject]
        private IMachineProvider MachineProvider { get; set; }

        public void SimulateApplicationException(bool causeCrash)
        {
            var response = MachineProvider.MachineOperator.SendGenericRequest<SimulateApplicationExceptionRequest, SimulateApplicationExceptionResponse>(new SimulateApplicationExceptionRequest()
            {
                CrashApplication = causeCrash,
            }).Result;
        }
    }
}