本文整理汇总了C#中NativeActivityMetadata.SetImplementationVariablesCollection方法的典型用法代码示例。如果您正苦于以下问题:C# NativeActivityMetadata.SetImplementationVariablesCollection方法的具体用法?C# NativeActivityMetadata.SetImplementationVariablesCollection怎么用?C# NativeActivityMetadata.SetImplementationVariablesCollection使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类NativeActivityMetadata
的用法示例。
在下文中一共展示了NativeActivityMetadata.SetImplementationVariablesCollection方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CacheMetadata
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
RuntimeArgument targetArgument = new RuntimeArgument("Target", typeof(CompensationToken), ArgumentDirection.In);
metadata.Bind(this.Target, targetArgument);
metadata.SetArgumentsCollection(
new Collection<RuntimeArgument>
{
targetArgument
});
metadata.SetImplementationVariablesCollection(
new Collection<Variable>
{
this.currentCompensationToken
});
Fx.Assert(DefaultConfirmation != null, "DefaultConfirmation must be valid");
Fx.Assert(InternalConfirm != null, "InternalConfirm must be valid");
metadata.SetImplementationChildrenCollection(
new Collection<Activity>
{
DefaultConfirmation,
InternalConfirm
});
}
示例2: CacheMetadata
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
RuntimeArgument argument = new RuntimeArgument("Target", typeof(CompensationToken), ArgumentDirection.In);
metadata.Bind(this.Target, argument);
metadata.SetArgumentsCollection(new Collection<RuntimeArgument> { argument });
metadata.SetImplementationVariablesCollection(new Collection<Variable> { this.toConfirmToken });
metadata.SetImplementationChildrenCollection(new Collection<Activity> { this.Body });
}
示例3: CacheMetadata
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
Fx.Assert(this.DefaultCompensation != null, "DefaultCompensation must be valid");
Fx.Assert(this.DefaultConfirmation != null, "DefaultConfirmation must be valid");
metadata.SetImplementationChildrenCollection(
new Collection<Activity>
{
this.DefaultCompensation,
this.DefaultConfirmation
});
metadata.SetImplementationVariablesCollection(new Collection<Variable> { this.currentCompensationToken });
}
示例4: CacheMetadata
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
metadata.AddChild(this.Body);
metadata.SetImplementationVariablesCollection(
new Collection<Variable>
{
this.declaredHandle
});
RuntimeArgument correlatesWithArgument = new RuntimeArgument("CorrelatesWith", typeof(CorrelationHandle), ArgumentDirection.In);
metadata.Bind(this.CorrelatesWith, correlatesWithArgument);
metadata.SetArgumentsCollection(new Collection<RuntimeArgument> { correlatesWithArgument });
}
示例5: CacheMetadata
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
metadata.SetImplementationVariablesCollection(
new Collection<Variable>
{
this.currentCompensationToken,
});
Collection<Activity> children = new Collection<Activity>();
if (this.CompensationHandler != null)
{
children.Add(CompensationHandler);
}
if (this.ConfirmationHandler != null)
{
children.Add(ConfirmationHandler);
}
if (this.CancellationHandler != null)
{
children.Add(CancellationHandler);
}
metadata.SetChildrenCollection(children);
Collection<Activity> implementationChildren = new Collection<Activity>();
Fx.Assert(DefaultCompensation != null, "DefaultCompensation must be valid");
implementationChildren.Add(DefaultCompensation);
Fx.Assert(DefaultConfirmation != null, "DefaultConfirmation must be valid");
implementationChildren.Add(DefaultConfirmation);
metadata.SetImplementationChildrenCollection(implementationChildren);
RuntimeArgument compensationIdArgument = new RuntimeArgument("CompensationId", typeof(long), ArgumentDirection.In);
metadata.Bind(this.compensationId, compensationIdArgument);
metadata.AddArgument(compensationIdArgument);
}
示例6: CacheMetadata
protected override void CacheMetadata(NativeActivityMetadata metadata)
{
metadata.SetImplementationChildrenCollection(new Collection<Activity> { this.DefaultCompensation, this.DefaultConfirmation });
metadata.SetImplementationVariablesCollection(new Collection<Variable> { this.currentCompensationToken });
}
开发者ID:pritesh-mandowara-sp,项目名称:DecompliedDotNetLibraries,代码行数:5,代码来源:WorkflowCompensationBehavior.cs