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>();
 }
Exemplo n.º 4
0
 public void SetInstance(WorkflowInstanceProxy instance)
 {
     Proxy = instance;
 }
Exemplo 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;
 }
Exemplo 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);
 }