예제 #1
0
 internal void UpdateDynamicParameters()
 {
     foreach (var parameter in dynamicParameters)
     {
         parameterParser.UpdateParameterValue(parameter, new Lazy <PrtgObject>(() => Object));
     }
 }
예제 #2
0
        private TriggerParameter CreateTriggerParameter(TriggerProperty property, object value)
        {
            var parameter = new TriggerParameter(property, value);

            parameterParser.UpdateParameterValue(parameter, new Lazy <PrtgObject>(() =>
            {
                if (Trigger != null)
                {
                    return(client.GetObject(Trigger.ObjectId));
                }

                return(client.GetObject(ObjectId));
            }));

            return(parameter);
        }