public PSStorageJobActionDetails(SchedulerModels.JobActionType jobActionType) { if (jobActionType != SchedulerModels.JobActionType.StorageQueue) { throw new ArgumentOutOfRangeException(); } this.JobActionType = jobActionType; }
public PSServiceBusJobActionDetails(SchedulerModels.JobActionType actionType) { if (actionType != SchedulerModels.JobActionType.ServiceBusQueue && actionType != SchedulerModels.JobActionType.ServiceBusTopic) { throw new ArgumentOutOfRangeException(); } this.JobActionType = actionType; }
public PSHttpJobActionDetails(SchedulerModels.JobActionType jobActionType) { if (jobActionType != SchedulerModels.JobActionType.Http && jobActionType != SchedulerModels.JobActionType.Https) { throw new ArgumentOutOfRangeException(); } this.JobActionType = jobActionType; }