Windows Workflow Foundation (WF4) - Workflow Services and Auto-Start

This sample application demonstrates how you can create a Workflow Service that will automatically start and periodically wake up to do some work. The sample also demonstrates a UI that shows the progress of the work and provides control and query capabilities.

C# (249.0 KB)
 
 
 
 
 
4 Star
(6)
4,302 times
Add to favorites
4/28/2011
E-mail Twitter del.icio.us Digg Facebook
// --------------------------------------------------------------------------------------------------------------------
// <copyright file="BatchRequest.cs" company="Microsoft">
//   Copyright (c) Microsoft Corporation. All rights reserved.
// </copyright>
// <summary>
//   The batch request.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace BatchWorker.Contracts
{
    using System;

    /// <summary>
    /// The batch request.
    /// </summary>
    public class BatchRequest
    {
        #region Properties

        /// <summary>
        /// Gets or sets a value indicating whether AutoStart.
        /// </summary>
        public bool AutoStart { get; set; }

        /// <summary>
        ///   Gets or sets CountTo.
        /// </summary>
        public int CountTo { get; set; }

        /// <summary>
        ///   Gets or sets Delay.
        /// </summary>
        public TimeSpan Delay { get; set; }

        /// <summary>
        ///   Gets or sets StartAt.
        /// </summary>
        public DateTime StartAt { get; set; }

        #endregion
    }
}