public virtual void SetInstance(WorkflowInstanceProxy instance)
        {
            if (this.instance != null && instance != null)
            {
                throw FxTrace.Exception.AsError(new InvalidOperationException(SR.TimerExtensionAlreadyAttached));
            }

            this.instance = instance;
        }
 /// <summary>
 /// Sets the specified target <see cref="T:System.Activities.Hosting.WorkflowInstanceProxy"/>.
 /// </summary>
 /// <param name="instance">The target workflow instance to set.</param>
 public void SetInstance(WorkflowInstanceProxy instance) {
     this.host = instance;
 }
 void IWorkflowInstanceExtension.SetInstance(WorkflowInstanceProxy instance)
 {
     this.instance = instance;
     this.contexts = new ConcurrentDictionary<string, CopyFileContext>();
 }
Ejemplo n.º 4
0
 public void SetInstance(WorkflowInstanceProxy instance)
 {
     Proxy = instance;
 }
Ejemplo n.º 5
0
		public virtual void SetInstance (WorkflowInstanceProxy instance)
		{
			throw new NotImplementedException ();
		}
 /// <summary>
 /// Sets the specified target <see cref="T:System.Activities.Hosting.WorkflowInstanceProxy"/>.
 /// </summary>
 /// <param name="instance">The target workflow instance to set.</param>
 public void SetInstance(WorkflowInstanceProxy instance)
 {
     this.activityInjector.Inject(instance.WorkflowDefinition);
 }
 public BookmarkResumptionState(Bookmark timerBookmark, DurableTimerExtension timerExtension, WorkflowInstanceProxy instance)
 {
     this.TimerBookmark = timerBookmark;
     this.TimerExtension = timerExtension;
     this.Instance = instance;
 }
 void IWorkflowInstanceExtension.SetInstance(WorkflowInstanceProxy instance)
 {
     this.Instance = instance;
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Sets the specified target <see cref="T:System.Activities.Hosting.WorkflowInstanceProxy" />.
 /// </summary>
 /// <param name="instance">The target workflow instance to set.</param>
 public void SetInstance(WorkflowInstanceProxy instance)
 {
     WorkflowInstance = instance;
     if (WorkflowInstanceSet != null) WorkflowInstanceSet(instance);
 }