e79aa3c0ed
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
//-----------------------------------------------------------------------------
|
|
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
//-----------------------------------------------------------------------------
|
|
|
|
namespace System.Activities.Hosting
|
|
{
|
|
using System;
|
|
using System.Runtime;
|
|
|
|
public sealed class WorkflowInstanceProxy
|
|
{
|
|
WorkflowInstance instance;
|
|
|
|
internal WorkflowInstanceProxy(WorkflowInstance instance)
|
|
{
|
|
this.instance = instance;
|
|
}
|
|
|
|
public Guid Id
|
|
{
|
|
get
|
|
{
|
|
return this.instance.Id;
|
|
}
|
|
}
|
|
|
|
public Activity WorkflowDefinition
|
|
{
|
|
get
|
|
{
|
|
return this.instance.WorkflowDefinition;
|
|
}
|
|
}
|
|
|
|
public IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, AsyncCallback callback, object state)
|
|
{
|
|
return BeginResumeBookmark(bookmark, value, TimeSpan.MaxValue, callback, state);
|
|
}
|
|
|
|
public IAsyncResult BeginResumeBookmark(Bookmark bookmark, object value, TimeSpan timeout, AsyncCallback callback, object state)
|
|
{
|
|
TimeoutHelper.ThrowIfNegativeArgument(timeout);
|
|
|
|
return this.instance.OnBeginResumeBookmark(bookmark, value, timeout, callback, state);
|
|
}
|
|
|
|
public BookmarkResumptionResult EndResumeBookmark(IAsyncResult result)
|
|
{
|
|
return this.instance.OnEndResumeBookmark(result);
|
|
}
|
|
}
|
|
}
|