/// <summary> /// Initializes a new instance of the <see cref="JobStream"/> class. /// </summary> /// <param name="jobStream"> /// The job stream. /// </param> /// <exception cref="System.ArgumentException"> /// </exception> public JobStream(AutomationManagement.Models.JobStream jobStream) { Requires.Argument("jobStream", jobStream).NotNull(); this.StreamId = jobStream.Properties.StreamId; this.StreamType = jobStream.Properties.StreamType; this.Summary = jobStream.Properties.Summary; this.Time = jobStream.Properties.Time.ToLocalTime(); }
/// <summary> /// Initializes a new instance of the <see cref="JobStream"/> class. /// </summary> /// <param name="jobStream"> /// The job stream. /// </param> /// <exception cref="System.ArgumentException"> /// </exception> public JobStream(AutomationManagement.Models.JobStream jobStream, string automationAccountName, Guid jobId) { Requires.Argument("jobStream", jobStream).NotNull(); this.JobStreamId = jobStream.Properties.JobStreamId; this.Type = jobStream.Properties.StreamType; this.Text = jobStream.Properties.Summary; this.Time = jobStream.Properties.Time; this.AutomationAccountName = automationAccountName; this.Id = jobId; }