コード例 #1
0
        public PSDataBoxEdgeTrigger(Trigger trigger, string kind)
        {
            this.Trigger = trigger ?? throw new ArgumentNullException("trigger");
            this.Id      = trigger.Id;
            var resourceIdentifier = new DataBoxEdgeResourceIdentifier(trigger.Id);

            this.ResourceGroupName = resourceIdentifier.ResourceGroupName;
            this.DeviceName        = resourceIdentifier.DeviceName;
            this.Name = resourceIdentifier.ResourceName;
            this.Kind = kind;
        }
コード例 #2
0
        public static PSDataBoxEdgeTrigger PSDataBoxEdgeTriggerObject(Trigger trigger)
        {
            switch (trigger)
            {
            case FileEventTrigger fileEventTrigger:
                return(new PSDataBoxEdgeTrigger(fileEventTrigger, "FileEventTrigger"));

            case PeriodicTimerEventTrigger periodicTimerEventTrigger:
                return(new PSDataBoxEdgeTrigger(periodicTimerEventTrigger, "PeriodicTimerEventTrigger"));
            }

            return(null);
        }
コード例 #3
0
 public PSDataBoxEdgeTrigger()
 {
     Trigger = new Trigger();
 }
コード例 #4
0
 public PSStackEdgeTrigger()
 {
     Trigger = new Trigger();
 }