You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.125
Former-commit-id: a2155e9bd80020e49e72e86c44da02a8ac0e57a4
This commit is contained in:
parent
a569aebcfd
commit
e79aa3c0ed
@ -0,0 +1,56 @@
|
||||
//------------------------------------------------------------
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//------------------------------------------------------------
|
||||
|
||||
namespace System.Activities
|
||||
{
|
||||
using System.Activities.Runtime;
|
||||
using System.Activities.Tracking;
|
||||
using System.Runtime;
|
||||
|
||||
[Fx.Tag.XamlVisible(false)]
|
||||
public class CodeActivityContext : ActivityContext
|
||||
{
|
||||
// This is called by the Pool.
|
||||
internal CodeActivityContext()
|
||||
{
|
||||
}
|
||||
|
||||
// This is only used by base classes which do not take
|
||||
// part in pooling.
|
||||
internal CodeActivityContext(ActivityInstance instance, ActivityExecutor executor)
|
||||
: base(instance, executor)
|
||||
{
|
||||
}
|
||||
|
||||
internal void Initialize(ActivityInstance instance, ActivityExecutor executor)
|
||||
{
|
||||
base.Reinitialize(instance, executor);
|
||||
}
|
||||
|
||||
public THandle GetProperty<THandle>() where THandle : Handle
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
if (this.CurrentInstance.PropertyManager != null)
|
||||
{
|
||||
return (THandle)this.CurrentInstance.PropertyManager.GetProperty(Handle.GetPropertyName(typeof(THandle)), this.Activity.MemberOf);
|
||||
}
|
||||
else
|
||||
{
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public void Track(CustomTrackingRecord record)
|
||||
{
|
||||
ThrowIfDisposed();
|
||||
|
||||
if (record == null)
|
||||
{
|
||||
throw FxTrace.Exception.ArgumentNull("record");
|
||||
}
|
||||
|
||||
base.TrackCore(record);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user