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,65 @@
|
||||
//-----------------------------------------------------------------------------
|
||||
// Copyright (c) Microsoft Corporation. All rights reserved.
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
namespace System.Activities.Runtime
|
||||
{
|
||||
using System;
|
||||
using System.Runtime;
|
||||
using System.Runtime.Serialization;
|
||||
|
||||
[DataContract]
|
||||
class FaultContext
|
||||
{
|
||||
Exception exception;
|
||||
ActivityInstanceReference source;
|
||||
|
||||
internal FaultContext(Exception exception, ActivityInstanceReference sourceReference)
|
||||
{
|
||||
Fx.Assert(exception != null, "Must have an exception.");
|
||||
Fx.Assert(sourceReference != null, "Must have a source.");
|
||||
|
||||
this.Exception = exception;
|
||||
this.Source = sourceReference;
|
||||
}
|
||||
|
||||
public Exception Exception
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.exception;
|
||||
}
|
||||
private set
|
||||
{
|
||||
this.exception = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ActivityInstanceReference Source
|
||||
{
|
||||
get
|
||||
{
|
||||
return this.source;
|
||||
}
|
||||
private set
|
||||
{
|
||||
this.source = value;
|
||||
}
|
||||
}
|
||||
|
||||
[DataMember(Name = "Exception")]
|
||||
internal Exception SerializedException
|
||||
{
|
||||
get { return this.Exception; }
|
||||
set { this.Exception = value; }
|
||||
}
|
||||
[DataMember(Name = "Source")]
|
||||
internal ActivityInstanceReference SerializedSource
|
||||
{
|
||||
get { return this.Source; }
|
||||
set { this.Source = value; }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user