/// <summary> /// Initializes a new instance of the <see cref="ErrorReportsModel"/> class. /// </summary> /// <param name="context">The context that is used to execute actions on the UI thread.</param> /// <param name="sendReportsCommand">The command that is used to send the feedback reports to the remote server.</param> /// <param name="feedbackCollector">The object that collects the feedback reports that have been stored on the disk.</param> /// <param name="fileSystem">The object that provides access to the file system.</param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="context"/> is <see langword="null" />. /// </exception> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="sendReportsCommand"/> is <see langword="null" />. /// </exception> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="feedbackCollector"/> is <see langword="null" />. /// </exception> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="fileSystem"/> is <see langword="null" />. /// </exception> public ErrorReportsModel( IContextAware context, ICommand sendReportsCommand, ICollectFeedbackReports feedbackCollector, IFileSystem fileSystem) : base(context) { { Lokad.Enforce.Argument(() => sendReportsCommand); Lokad.Enforce.Argument(() => feedbackCollector); Lokad.Enforce.Argument(() => fileSystem); } SendReportsCommand = sendReportsCommand; m_FeedbackCollector = feedbackCollector; m_FileSystem = fileSystem; RelocateReports(); }
/// <summary> /// Initializes a new instance of the <see cref="ErrorReportsModel"/> class. /// </summary> /// <param name="context">The context that is used to execute actions on the UI thread.</param> /// <param name="sendReportsCommand">The command that is used to send the feedback reports to the remote server.</param> /// <param name="feedbackCollector">The object that collects the feedback reports that have been stored on the disk.</param> /// <param name="fileSystem">The object that provides access to the file system.</param> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="context"/> is <see langword="null" />. /// </exception> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="sendReportsCommand"/> is <see langword="null" />. /// </exception> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="feedbackCollector"/> is <see langword="null" />. /// </exception> /// <exception cref="ArgumentNullException"> /// Thrown if <paramref name="fileSystem"/> is <see langword="null" />. /// </exception> public ErrorReportsModel( IContextAware context, ICommand sendReportsCommand, ICollectFeedbackReports feedbackCollector, IFileSystem fileSystem) : base(context) { { Lokad.Enforce.Argument(() => sendReportsCommand); Lokad.Enforce.Argument(() => feedbackCollector); Lokad.Enforce.Argument(() => fileSystem); } SendReportsCommand = sendReportsCommand; m_FeedbackCollector = feedbackCollector; m_FileSystem = fileSystem; RelocateReports(); }