mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Adding reference source for System.Activities System.Activities.DurableInstancing System.Activities.Presentation System.Runtime.DurableInstancing System.Workflow.Activities System.Workflow.ComponentModel System.Workflow.Runtime System.WorkflowServices System.Xaml.Hosting XamlBuildTask
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);
|
|
}
|
|
}
|
|
}
|