Exemple #1
0
 internal async Task Execute(SimConnectWrapper.SimConnectWrapper simConnect)
 {
     var data = new ExecuteCalculatorCodeRequestData()
     {
         RequestId  = NextRequestId,
         HEventName = HEventName,
     };
     await simConnect.SetClientData(DataAreaModuleInput.Id, DefineId, SIMCONNECT_CLIENT_DATA_SET_FLAG.DEFAULT, data).ConfigureAwait(false);
 }
Exemple #2
0
        internal async Task <double> Execute(SimConnectWrapper.SimConnectWrapper simConnect)
        {
            var data = new ReadLVarRequestData()
            {
                RequestId = MyRequestId,
                LVarName  = LVarName,
            };
            await simConnect.SetClientData(DataAreaModuleInput.Id, DefineId, SIMCONNECT_CLIENT_DATA_SET_FLAG.DEFAULT, data).ConfigureAwait(false);

            return(await WaitForFinish(TimeSpan.FromSeconds(2)).ConfigureAwait(false));
        }