/// <summary>
 /// Initializes a new instance of the <see cref="ActionVirtualizationWrapper"/> class.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="threadModel">The thread model.</param>
 /// <param name="isRepeating">if set to <c>true</c> [is repeating].</param>
 /// <param name="repeatingSchedule">The repeating schedule.</param>
 public ActionVirtualizationWrapper(Action action,
                                    VirtualActionThreadModelEnum threadModel = VirtualActionThreadModelEnum.UseUiThread,
                                    bool isRepeating = false, TimeSpan?repeatingSchedule = null)
     : base(threadModel, isRepeating, repeatingSchedule)
 {
     this._action = action;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="ActionVirtualizationWrapper"/> class.
 /// </summary>
 /// <param name="action">The action.</param>
 /// <param name="threadModel">The thread model.</param>
 /// <param name="isRepeating">if set to <c>true</c> [is repeating].</param>
 /// <param name="repeatingSchedule">The repeating schedule.</param>
 public ActionVirtualizationWrapper(Action action,
     VirtualActionThreadModelEnum threadModel = VirtualActionThreadModelEnum.UseUIThread,
     bool isRepeating = false, TimeSpan? repeatingSchedule = null)
     : base(threadModel, isRepeating, repeatingSchedule)
 {
     _Action = action;
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseRepeatableActionVirtualization"/> class.
 /// </summary>
 /// <param name="threadModel">The thread model.</param>
 /// <param name="isRepeating">if set to <c>true</c> [is repeating].</param>
 /// <param name="repeatingSchedule">The repeating schedule.</param>
 public BaseRepeatableActionVirtualization(VirtualActionThreadModelEnum threadModel = VirtualActionThreadModelEnum.UseUIThread,
                                           bool isRepeating = false, TimeSpan?repeatingSchedule = null)
     : base(threadModel)
 {
     this.IsRepeating = isRepeating;
     if (repeatingSchedule.HasValue)
     {
         this.RepeatingSchedule = repeatingSchedule.Value;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseRepeatableActionVirtualization"/> class.
 /// </summary>
 /// <param name="threadModel">The thread model.</param>
 /// <param name="isRepeating">if set to <c>true</c> [is repeating].</param>
 /// <param name="repeatingSchedule">The repeating schedule.</param>
 public BaseRepeatableActionVirtualization(VirtualActionThreadModelEnum threadModel = VirtualActionThreadModelEnum.UseUIThread,
     bool isRepeating = false, TimeSpan? repeatingSchedule = null)
     : base(threadModel)
 {
     this.IsRepeating = isRepeating;
     if (repeatingSchedule.HasValue)
     {
         this.RepeatingSchedule = repeatingSchedule.Value;
     }
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="BaseActionVirtualization"/> class.
 /// </summary>
 /// <param name="threadModel">The thread model.</param>
 public BaseActionVirtualization(VirtualActionThreadModelEnum threadModel)
 {
     this.ThreadModel = threadModel;
 }
Ejemplo n.º 6
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="BaseActionVirtualization" /> class.
 /// </summary>
 /// <param name="threadModel">The thread model.</param>
 public BaseActionVirtualization(VirtualActionThreadModelEnum threadModel)
 {
     this.ThreadModel = threadModel;
 }