示例#1
0
        /// <summary>
        /// Sets the bag containing results.
        /// </summary>
        /// <param name="resultsBag"></param>
        void IWorkUnit.SetResultsBag(WorkUnitResultsBag resultsBag)
        {
            if (resultsBag == null)
            {
                throw new ArgumentNullException("resultsBag");
            }

            // set...
            _resultsBag = resultsBag;
        }
 /// <summary>
 /// Resets the context bag.
 /// </summary>
 public void ResetBag()
 {
     _bag = new WorkUnitResultsBag();
 }