Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Source/Zencoder/CreateJobRequest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,13 @@ public CreateJobRequest(string apiKey, Uri baseUrl)
[JsonProperty("region", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)]
public string Region { get; set; }

/// <summary>
/// Gets or sets the grouping to use when processing the job.
/// Defaults to "us".
/// </summary>
[JsonProperty("grouping", DefaultValueHandling = DefaultValueHandling.Ignore, NullValueHandling = NullValueHandling.Ignore)]
public string Grouping { get; set; }

/// <summary>
/// Gets or sets a value indicating whether test mode is enabled for the job.
/// </summary>
Expand Down
26 changes: 26 additions & 0 deletions Source/Zencoder/Zencoder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,32 @@ public void CreateJob(string input, IEnumerable<Output> outputs, int? downloadCo
request.WithOutputs(outputs).GetResponseAsync(callback);
}

/// <summary>
/// A blocking create job request/response cycle.
/// </summary>
/// <param name="input">The URL of the input file.</param>
/// <param name="outputs">The output definition collection.</param>
/// <param name="downloadConnections">The number of download connections to use when fetching the input file.</param>
/// <param name="region">The region to perform the job in.</param>
/// <param name="grouping">The grouping to use with reporting.</param>
/// <param name="test">A value indicating whether to use test mode.</param>
/// <param name="mock">A value indicating whether to mock the response rather than actually creating a job.</param>
/// <param name="callback">The call response.</param>
public void CreateJob(string input, IEnumerable<Output> outputs, int? downloadConnections, string region, string grouping, bool? test, bool? mock, Action<CreateJobResponse> callback)
{
CreateJobRequest request = new CreateJobRequest(this)
{
DownloadConnections = downloadConnections,
Input = input,
Mock = mock,
Region = region,
Test = test,
Grouping = grouping
};

request.WithOutputs(outputs).GetResponseAsync(callback);
}

/// <summary>
/// A blocking delete job request/response cycle.
/// </summary>
Expand Down