public void GetApplicationModels(
            RemotingService sender,
            string clientAddress,
            string signature,
            out IEnumerable<Data.Transfer.Device> devices,
            out IEnumerable<CryptoCoin> configurations,
            out bool mining,
            out bool hasChanges,
            out bool dynamicIntensity)
        {
            ModelEventArgs ea = new ModelEventArgs();
            ea.IpAddress = clientAddress;
            ea.Signature = signature;

            if (GetModelRequested != null)
                GetModelRequested(sender, ea);

            devices = ea.Devices;
            configurations = ea.ConfiguredCoins;
            mining = ea.Mining;
            hasChanges = ea.HasChanges;
            dynamicIntensity = ea.DynamicIntensity;
        }
Exemple #2
0
 private void GetModelRequested(object sender, ModelEventArgs ea)
 {
     PerformRequestedCommand(ea.IpAddress, ea.Signature, () =>
     {
         ea.Devices = GetDeviceTransferObjects();
         ea.ConfiguredCoins = localViewModel.ConfiguredCoins;
         ea.Mining = miningEngine.Mining;
         ea.DynamicIntensity = localViewModel.DynamicIntensity;
         ea.HasChanges = localViewModel.HasChanges;
     });
 }