Пример #1
0
        public SchedulePayload(string codeName, string payload, ScheduleOptions options = null)
        {
            CodeName = codeName;
            Payload = payload;

            if (options == null) return;

            EndAt = options.EndAt;
            Priority = options.Priority;
            RunEvery = options.RunEvery;
            StartAt = options.StartAt;
        }
Пример #2
0
        public SchedulePayload(string codeName, string payload, ScheduleOptions options = null)
        {
            CodeName = codeName;
            Payload  = payload;

            if (options == null)
            {
                return;
            }

            EndAt    = options.EndAt;
            Priority = options.Priority;
            RunEvery = options.RunEvery;
            StartAt  = options.StartAt;
        }
 public SchedulePayloadCollection(string codeName, string payload, ScheduleOptions options = null)
 {
     Schedules.Add(new SchedulePayload(codeName, payload, options));
 }
Пример #4
0
 public SchedulePayloadCollection(string codeName, string payload, ScheduleOptions options = null)
 {
     Schedules.Add(new SchedulePayload(codeName, payload, options));
 }
Пример #5
0
 public ScheduleIdCollection Create(string codeName, string payload, ScheduleOptions options)
 {
     return(Create(new SchedulePayloadCollection(codeName, payload, options)));
 }
Пример #6
0
 public ScheduleIdCollection Create(string codeName, object payload, ScheduleOptions options)
 {
     return(Create(codeName, ValueSerializer.Generate(payload), options));
 }
Пример #7
0
 public async Task <ScheduleIdCollection> Create(string codeName, string payload, ScheduleOptions options)
 {
     return(await Create(new SchedulePayloadCollection(codeName, payload, options)));
 }
Пример #8
0
 public async Task <ScheduleIdCollection> Create(string codeName, object payload, ScheduleOptions options)
 {
     return(await Create(codeName, ValueSerializer.Generate(payload), options));
 }
Пример #9
0
 public ScheduleIdCollection Create(string codeName, string payload, ScheduleOptions options)
 {
     return Create(new SchedulePayloadCollection(codeName, payload, options));
 }
Пример #10
0
 public ScheduleIdCollection Create(string codeName, object payload, ScheduleOptions options)
 {
     return Create(codeName, ValueSerializer.Generate(payload), options);
 }