Beispiel #1
0
/// <summary>
/// Initialize the template
/// </summary>
        public virtual void Initialize()
        {
            if ((this.Errors.HasErrors == false))
            {
                bool actionValueAcquired = false;
                if (this.Session.ContainsKey("action"))
                {
                    this._actionField   = ((global::Microsoft.ALMRangers.RMWorkflowMigrator.Generator.PowerShell.Model.ScriptAction)(this.Session["action"]));
                    actionValueAcquired = true;
                }
                if ((actionValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("action");
                    if ((data != null))
                    {
                        this._actionField = ((global::Microsoft.ALMRangers.RMWorkflowMigrator.Generator.PowerShell.Model.ScriptAction)(data));
                    }
                }
                bool componentsValueAcquired = false;
                if (this.Session.ContainsKey("components"))
                {
                    this._componentsField   = ((global::System.Collections.Generic.IEnumerable <ScriptAction>)(this.Session["components"]));
                    componentsValueAcquired = true;
                }
                if ((componentsValueAcquired == false))
                {
                    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("components");
                    if ((data != null))
                    {
                        this._componentsField = ((global::System.Collections.Generic.IEnumerable <ScriptAction>)(data));
                    }
                }
            }
        }
/// <summary>
/// Initialize the template
/// </summary>
public virtual void Initialize()
{
    if ((this.Errors.HasErrors == false))
    {
bool actionValueAcquired = false;
if (this.Session.ContainsKey("action"))
{
    this._actionField = ((global::Microsoft.ALMRangers.RMWorkflowMigrator.Generator.PowerShell.Model.ScriptAction)(this.Session["action"]));
    actionValueAcquired = true;
}
if ((actionValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("action");
    if ((data != null))
    {
        this._actionField = ((global::Microsoft.ALMRangers.RMWorkflowMigrator.Generator.PowerShell.Model.ScriptAction)(data));
    }
}
bool componentsValueAcquired = false;
if (this.Session.ContainsKey("components"))
{
    this._componentsField = ((global::System.Collections.Generic.IEnumerable<ScriptAction>)(this.Session["components"]));
    componentsValueAcquired = true;
}
if ((componentsValueAcquired == false))
{
    object data = global::System.Runtime.Remoting.Messaging.CallContext.LogicalGetData("components");
    if ((data != null))
    {
        this._componentsField = ((global::System.Collections.Generic.IEnumerable<ScriptAction>)(data));
    }
}


    }
}