public TaskPayloadCollection(string codeName, IEnumerable<string> payloads, TaskOptions options = null) { foreach (string payload in payloads) { Tasks.Add(new TaskPayload(codeName, payload, options)); } }
public TaskPayloadCollection(string codeName, IEnumerable <string> payloads, TaskOptions options = null) { foreach (string payload in payloads) { Tasks.Add(new TaskPayload(codeName, payload, options)); } }
public TaskPayload(string codeName, string payload, TaskOptions options = null) { CodeName = codeName; Payload = payload; if (options == null) return; Timeout = options.Timeout; Delay = options.Delay; Priority = options.Priority; }
public TaskPayload(string codeName, string payload, TaskOptions options = null) { CodeName = codeName; Payload = payload; if (options == null) { return; } Timeout = options.Timeout; Delay = options.Delay; Priority = options.Priority; }
public async Task <TaskIdCollection> Create(string codeName, IEnumerable <string> payloads, TaskOptions options = null) { return(await Create(new TaskPayloadCollection(codeName, payloads, options))); }
public async Task <TaskIdCollection> Create(string codeName, IEnumerable <object> payloads, TaskOptions options = null) { return(await Create(codeName, payloads.Select(ValueSerializer.Generate), options)); }
/// <summary> /// Creates a single task /// </summary> /// <param name="codeName"> The task Code Name </param> /// <param name="payload"> The task payload </param> /// <param name="options"> The task options </param> /// <returns> The task id </returns> public async Task <string> Create(string codeName, string payload, TaskOptions options = null) { return(await Create(new TaskPayload(codeName, payload, options))); }
/// <summary> /// Creates a single task /// </summary> /// <param name="codeName"> The task Code Name </param> /// <param name="payload"> The task payload </param> /// <param name="options"> The task options </param> /// <returns> The task id </returns> public async Task <string> Create(string codeName, object payload, TaskOptions options = null) { return(await Create(codeName, ValueSerializer.Generate(payload), options)); }
public TaskPayloadCollection(string codeName, string payload, TaskOptions options = null) { Tasks.Add(new TaskPayload(codeName, payload, options)); }
/// <summary> /// Creates a single task /// </summary> /// <param name="codeName"> The task Code Name </param> /// <param name="payload"> The task payload </param> /// <param name="options"> The task options </param> /// <returns> The task id </returns> public string Create(string codeName, string payload, TaskOptions options = null) { return(Create(new TaskPayload(codeName, payload, options))); }
/// <summary> /// Creates a single task /// </summary> /// <param name="codeName"> The task Code Name </param> /// <param name="payload"> The task payload </param> /// <param name="options"> The task options </param> /// <returns> The task id </returns> public string Create(string codeName, object payload, TaskOptions options = null) { return(Create(codeName, ValueSerializer.Generate(payload), options)); }
public TaskIdCollection Create(string codeName, IEnumerable<string> payloads, TaskOptions options = null) { return Create(new TaskPayloadCollection(codeName, payloads, options)); }
public TaskIdCollection Create(string codeName, IEnumerable<object> payloads, TaskOptions options = null) { return Create(codeName, payloads.Select(ValueSerializer.Generate), options); }
/// <summary> /// Creates a single task /// </summary> /// <param name="codeName"> The task Code Name </param> /// <param name="payload"> The task payload </param> /// <param name="options"> The task options </param> /// <returns> The task id </returns> public string Create(string codeName, string payload, TaskOptions options = null) { return Create(new TaskPayload(codeName, payload, options)); }
/// <summary> /// Creates a single task /// </summary> /// <param name="codeName"> The task Code Name </param> /// <param name="payload"> The task payload </param> /// <param name="options"> The task options </param> /// <returns> The task id </returns> public string Create(string codeName, object payload, TaskOptions options = null) { return Create(codeName, ValueSerializer.Generate(payload), options); }