Changeset 2786


Ignore:
Timestamp:
07/17/12 07:48:22 (2 years ago)
Author:
lowjoel
Message:

These types need to be Marshalled By Reference for progress reporting to work properly.

Location:
branches/eraser6/EraserService
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/EraserService/Eraser.DefaultPlugins/ErasureTargets/ErasureTargetBase.cs

    r2613 r2786  
    3636namespace Eraser.DefaultPlugins 
    3737{ 
    38     public abstract class ErasureTargetBase : IErasureTarget 
     38    public abstract class ErasureTargetBase : MarshalByRefObject, IErasureTarget 
    3939    { 
    4040        #region IErasureTarget Members 
  • branches/eraser6/EraserService/Eraser.Manager/Task.cs

    r2785 r2786  
    577577    /// steps of the Task Progress. 
    578578    /// </summary> 
    579     [Serializable] 
    580579    public class ErasureTargetProgressManagerStep : SteppedProgressManagerStepBase 
    581580    { 
  • branches/eraser6/EraserService/Eraser.Plugins/ProgressManager.cs

    r2784 r2786  
    3232    /// Manages the progress for any operation. 
    3333    /// </summary> 
    34     [Serializable] 
    35     public abstract class ProgressManagerBase 
     34    public abstract class ProgressManagerBase : MarshalByRefObject 
    3635    { 
    3736        /// <summary> 
     
    156155    /// properties. 
    157156    /// </summary> 
    158     [Serializable] 
    159157    public class ProgressManager : ProgressManagerBase 
    160158    { 
     
    337335    /// Manages progress based on sub-tasks. 
    338336    /// </summary> 
    339     [Serializable] 
    340337    public abstract class ChainedProgressManager : ProgressManagerBase 
    341338    { 
     
    349346    /// grained progress reporting. 
    350347    /// </summary> 
    351     [Serializable] 
    352348    public class SteppedProgressManager : ChainedProgressManager 
    353349    { 
     
    355351        /// The class which manages the steps which comprise the overall progress. 
    356352        /// </summary> 
    357         [Serializable] 
    358         private class StepsList : IList<SteppedProgressManagerStepBase> 
     353        private class StepsList : MarshalByRefObject, IList<SteppedProgressManagerStepBase> 
    359354        { 
    360355            public StepsList(SteppedProgressManager manager) 
     
    687682    /// Represents one step in the list of steps to complete. 
    688683    /// </summary> 
    689     [Serializable] 
    690     public abstract class SteppedProgressManagerStepBase 
     684    public abstract class SteppedProgressManagerStepBase : MarshalByRefObject 
    691685    { 
    692686        /// <summary> 
     
    748742    } 
    749743 
    750     [Serializable] 
    751744    public class SteppedProgressManagerStep : SteppedProgressManagerStepBase 
    752745    { 
     
    795788    /// of the rest. 
    796789    /// </summary> 
    797     [Serializable] 
    798790    public class ParallelProgressManager : ChainedProgressManager 
    799791    { 
     
    801793        /// The class which manages the progress of each dependent task. 
    802794        /// </summary> 
    803         [Serializable] 
    804795        private class SubTasksList : IList<ProgressManagerBase> 
    805796        { 
  • branches/eraser6/EraserService/Eraser.Util/Sampler.cs

    r2785 r2786  
    3131    /// </summary> 
    3232    /// <typeparam name="T">The type of data to sample.</typeparam> 
    33     [Serializable] 
    34     public class Sampler 
     33    public class Sampler : MarshalByRefObject 
    3534    { 
    3635        public void Add(double sample) 
Note: See TracChangeset for help on using the changeset viewer.