Process() public static méthode

public static Process ( DeviceConfiguration config, ProcessInfo info ) : void
config TrakHound.Configurations.DeviceConfiguration
info ProcessInfo
Résultat void
Exemple #1
0
        public void GetSentData(EventData data)
        {
            if (data != null && data.Id != null && configuration != null)
            {
                if (data.Id == "CURRENT_INSTANCE")
                {
                    if (data.Data02 != null)
                    {
                        var sdc = Configuration.Get(configuration);
                        if (sdc != null)
                        {
                            var currentInstance = (CurrentInstance)data.Data02;

                            var info = new Snapshot.ProcessInfo();
                            info.CurrentData     = currentInstance.CurrentData;
                            info.CurrentInstance = currentInstance.Instance;

                            Snapshot.Process(configuration, info);

                            // Send List of SnapShotItems to other Plugins
                            SendSnapShotItems(sdc.Snapshots);
                        }
                    }
                    else
                    {
                        SendSnapShotItems(null);
                    }
                }
            }
        }