internal static IEngine GetPythonEngine(System.Activities.ActivityContext context)
        {
            IEngine engine = context.DataContext.GetProperties()[PythonEngineSessionProperty]?.GetValue(context.DataContext) as IEngine;

            if (engine == null)
            {
                throw new InvalidOperationException(Resources.PythonEngineNotFoundException);
            }
            return(engine);
        }
Example #2
0
        internal static IInvoker GetJavaInvoker(System.Activities.ActivityContext context)
        {
            IInvoker invoker = context.DataContext.GetProperties()[JavaInvokerProperty]?.GetValue(context.DataContext) as IInvoker;

            if (invoker == null)
            {
                throw new InvalidOperationException(Resources.JavaInvokerNotLoadedException);
            }
            return(invoker);
        }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = Workflow1_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext0 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     return(null);
 }
 internal new static System.Activities.XamlIntegration.CompiledDataContext[] GetCompiledDataContextCacheHelper(object dataContextActivities, System.Activities.ActivityContext activityContext, System.Activities.Activity compiledRoot, bool forImplementation, int compiledDataContextCount)
 {
     return(System.Activities.XamlIntegration.CompiledDataContext.GetCompiledDataContextCache(dataContextActivities, activityContext, compiledRoot, forImplementation, compiledDataContextCount));
 }
Example #5
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = LoginActivity_TypedDataContext2.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginActivity_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new LoginActivity_TypedDataContext2(locations, activityContext, true);
         }
         LoginActivity_TypedDataContext2 refDataContext0 = ((LoginActivity_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext0.GetLocation <LoginServiceWFConractFirst.User>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginActivity_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new LoginActivity_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         LoginActivity_TypedDataContext2_ForReadOnly valDataContext1 = ((LoginActivity_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginActivity_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new LoginActivity_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         LoginActivity_TypedDataContext2_ForReadOnly valDataContext2 = ((LoginActivity_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginActivity_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new LoginActivity_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         LoginActivity_TypedDataContext2_ForReadOnly valDataContext3 = ((LoginActivity_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginActivity_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new LoginActivity_TypedDataContext2(locations, activityContext, true);
         }
         LoginActivity_TypedDataContext2 refDataContext4 = ((LoginActivity_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext4.GetLocation <bool>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginActivity_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new LoginActivity_TypedDataContext2(locations, activityContext, true);
         }
         LoginActivity_TypedDataContext2 refDataContext5 = ((LoginActivity_TypedDataContext2)(cachedCompiledDataContext[0]));
         return(refDataContext5.GetLocation <bool>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = DecryptActivity_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = DecryptActivity_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new DecryptActivity_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         DecryptActivity_TypedDataContext1_ForReadOnly valDataContext0 = ((DecryptActivity_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = DecryptActivity_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new DecryptActivity_TypedDataContext1(locations, activityContext, true);
         }
         DecryptActivity_TypedDataContext1 refDataContext1 = ((DecryptActivity_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext1.GetLocation <string>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }
Example #7
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = Workflow1_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext0 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext2(locations, activityContext, true);
         }
         Workflow1_TypedDataContext2 refDataContext1 = ((Workflow1_TypedDataContext2)(cachedCompiledDataContext[1]));
         return(refDataContext1.GetLocation <Sample.VariableAndArgument.Person>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[2] == null))
         {
             cachedCompiledDataContext[2] = new Workflow1_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext2_ForReadOnly valDataContext2 = ((Workflow1_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[2]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     return(null);
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext0 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext1 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext2 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext3 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext4 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext4.ValueType___Expr4Get());
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = TrainingWorkflowService_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new TrainingWorkflowService_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         TrainingWorkflowService_TypedDataContext2_ForReadOnly valDataContext5 = ((TrainingWorkflowService_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext5.ValueType___Expr5Get());
     }
     return(null);
 }
Example #9
0
 public T Get(ActivityContext context)
 {
     return(base.Get <T>(context));
 }
Example #10
0
        internal override bool TryPopulateValue(LocationEnvironment targetEnvironment, System.Activities.ActivityInstance targetActivityInstance, ActivityContext resolutionContext)
        {
            Location <T> location;

            if (this.Expression.TryGetValue(resolutionContext, out location))
            {
                targetEnvironment.Declare(base.RuntimeArgument, location.CreateReference(false), targetActivityInstance);
                return(true);
            }
            targetEnvironment.DeclareTemporaryLocation <Location <T> >(base.RuntimeArgument, targetActivityInstance, false);
            return(false);
        }
Example #11
0
 public void Set(ActivityContext context, object value)
 {
     throw new NotImplementedException();
 }
Example #12
0
 public Location GetLocation(ActivityContext context)
 {
     throw new NotImplementedException();
 }
Example #13
0
 public T Get <T> (ActivityContext context)
 {
     throw new NotImplementedException();
 }
Example #14
0
 public object Get(ActivityContext context)
 {
     throw new NotImplementedException();
 }
Example #15
0
 public InitializeGlobalParameters_TypedDataContext0(System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext, bool computelocationsOffset) :
     base(locations, activityContext)
 {
     if ((computelocationsOffset == true))
     {
         this.SetLocationsOffset((locations.Count - expectedLocationsCount));
     }
 }
 public TrainingWorkflowService_TypedDataContext1_ForReadOnly(System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext, bool computelocationsOffset) :
     base(locations, activityContext, false)
 {
     if ((computelocationsOffset == true))
     {
         this.SetLocationsOffset((locations.Count - expectedLocationsCount));
     }
 }
Example #17
0
 // Soft-Link: This method is referenced through reflection by
 // ExpressionUtilities.TryRewriteLambdaExpression.  Update that
 // file if the signature changes.
 public abstract Location GetLocation(ActivityContext context);
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = OtherWorkFlow_TypedDataContext3.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = OtherWorkFlow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 1);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new OtherWorkFlow_TypedDataContext3(locations, activityContext, true);
         }
         OtherWorkFlow_TypedDataContext3 refDataContext0 = ((OtherWorkFlow_TypedDataContext3)(cachedCompiledDataContext[0]));
         return(refDataContext0.GetLocation <string>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }
Example #19
0
 // The contract of this method is the caller promises never to read from the location
 internal virtual Location GetLocationForWrite(ActivityContext context)
 {
     return(GetLocation(context));
 }
Example #20
0
 public CreateUserActivity_TypedDataContext0_ForReadOnly(System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext, bool computelocationsOffset) :
     base(locations, activityContext)
 {
     if ((computelocationsOffset == true))
     {
         this.SetLocationsOffset((locations.Count - expectedLocationsCount));
     }
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = LoginWorkFlow_TypedDataContext3.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginWorkFlow_TypedDataContext3.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new LoginWorkFlow_TypedDataContext3(locations, activityContext, true);
         }
         LoginWorkFlow_TypedDataContext3 refDataContext0 = ((LoginWorkFlow_TypedDataContext3)(cachedCompiledDataContext[0]));
         return(refDataContext0.GetLocation <string>(refDataContext0.ValueType___Expr0Get, refDataContext0.ValueType___Expr0Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginWorkFlow_TypedDataContext4_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new LoginWorkFlow_TypedDataContext4_ForReadOnly(locations, activityContext, true);
         }
         LoginWorkFlow_TypedDataContext4_ForReadOnly valDataContext1 = ((LoginWorkFlow_TypedDataContext4_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = LoginWorkFlow_TypedDataContext4.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[2] == null))
         {
             cachedCompiledDataContext[2] = new LoginWorkFlow_TypedDataContext4(locations, activityContext, true);
         }
         LoginWorkFlow_TypedDataContext4 refDataContext2 = ((LoginWorkFlow_TypedDataContext4)(cachedCompiledDataContext[2]));
         return(refDataContext2.GetLocation <string>(refDataContext2.ValueType___Expr2Get, refDataContext2.ValueType___Expr2Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }
Example #22
0
 public LoginActivity_TypedDataContext2(System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext, bool computelocationsOffset) :
     base(locations, activityContext, false)
 {
     if ((computelocationsOffset == true))
     {
         this.SetLocationsOffset((locations.Count - expectedLocationsCount));
     }
 }
Example #23
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = Workflow1_TypedDataContext0_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext0_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext0_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext0_ForReadOnly valDataContext0 = ((Workflow1_TypedDataContext0_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext0_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new Workflow1_TypedDataContext0_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext0_ForReadOnly valDataContext1 = ((Workflow1_TypedDataContext0_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext1.ValueType___Expr1Get());
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext2 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext3 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[2] == null))
         {
             cachedCompiledDataContext[2] = new Workflow1_TypedDataContext1(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1 refDataContext4 = ((Workflow1_TypedDataContext1)(cachedCompiledDataContext[2]));
         return(refDataContext4.GetLocation <decimal>(refDataContext4.ValueType___Expr4Get, refDataContext4.ValueType___Expr4Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext5 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext5.ValueType___Expr5Get());
     }
     if ((expressionId == 6))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[2] == null))
         {
             cachedCompiledDataContext[2] = new Workflow1_TypedDataContext1(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1 refDataContext6 = ((Workflow1_TypedDataContext1)(cachedCompiledDataContext[2]));
         return(refDataContext6.GetLocation <int>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 7))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext7 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext7.ValueType___Expr7Get());
     }
     if ((expressionId == 8))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = Workflow1_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 3);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new Workflow1_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         Workflow1_TypedDataContext1_ForReadOnly valDataContext8 = ((Workflow1_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[1]));
         return(valDataContext8.ValueType___Expr8Get());
     }
     return(null);
 }
 public InitializeDynamicValue_TypedDataContext2_ForReadOnly(System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext, bool computelocationsOffset) :
     base(locations, activityContext, false)
 {
     if ((computelocationsOffset == true))
     {
         this.SetLocationsOffset((locations.Count - expectedLocationsCount));
     }
 }
Example #25
0
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = RackRateStatus_TypedDataContext1_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext0 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext1 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext1.GetLocation <BrokerageOnline.TransferObjects.ViewAction>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext2 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext3 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext3.ValueType___Expr3Get());
     }
     if ((expressionId == 4))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new RackRateStatus_TypedDataContext1_ForReadOnly(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1_ForReadOnly valDataContext4 = ((RackRateStatus_TypedDataContext1_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext4.ValueType___Expr4Get());
     }
     if ((expressionId == 5))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext5 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext5.GetLocation <string>(refDataContext5.ValueType___Expr5Get, refDataContext5.ValueType___Expr5Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 6))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext6 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext6.GetLocation <string>(refDataContext6.ValueType___Expr6Get, refDataContext6.ValueType___Expr6Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 7))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = RackRateStatus_TypedDataContext1.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new RackRateStatus_TypedDataContext1(locations, activityContext, true);
         }
         RackRateStatus_TypedDataContext1 refDataContext7 = ((RackRateStatus_TypedDataContext1)(cachedCompiledDataContext[1]));
         return(refDataContext7.GetLocation <string>(refDataContext7.ValueType___Expr7Get, refDataContext7.ValueType___Expr7Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }
 public object InvokeExpression(int expressionId, System.Collections.Generic.IList <System.Activities.LocationReference> locations, System.Activities.ActivityContext activityContext)
 {
     if ((this.rootActivity == null))
     {
         this.rootActivity = this;
     }
     if ((this.dataContextActivities == null))
     {
         this.dataContextActivities = InitializeDynamicValue_TypedDataContext2_ForReadOnly.GetDataContextActivitiesHelper(this.rootActivity, this.forImplementation);
     }
     if ((expressionId == 0))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = InitializeDynamicValue_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new InitializeDynamicValue_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         InitializeDynamicValue_TypedDataContext2_ForReadOnly valDataContext0 = ((InitializeDynamicValue_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext0.ValueType___Expr0Get());
     }
     if ((expressionId == 1))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = InitializeDynamicValue_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new InitializeDynamicValue_TypedDataContext2(locations, activityContext, true);
         }
         InitializeDynamicValue_TypedDataContext2 refDataContext1 = ((InitializeDynamicValue_TypedDataContext2)(cachedCompiledDataContext[1]));
         return(refDataContext1.GetLocation <bool>(refDataContext1.ValueType___Expr1Get, refDataContext1.ValueType___Expr1Set, expressionId, this.rootActivity, activityContext));
     }
     if ((expressionId == 2))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = InitializeDynamicValue_TypedDataContext2_ForReadOnly.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[0] == null))
         {
             cachedCompiledDataContext[0] = new InitializeDynamicValue_TypedDataContext2_ForReadOnly(locations, activityContext, true);
         }
         InitializeDynamicValue_TypedDataContext2_ForReadOnly valDataContext2 = ((InitializeDynamicValue_TypedDataContext2_ForReadOnly)(cachedCompiledDataContext[0]));
         return(valDataContext2.ValueType___Expr2Get());
     }
     if ((expressionId == 3))
     {
         System.Activities.XamlIntegration.CompiledDataContext[] cachedCompiledDataContext = InitializeDynamicValue_TypedDataContext2.GetCompiledDataContextCacheHelper(this.dataContextActivities, activityContext, this.rootActivity, this.forImplementation, 2);
         if ((cachedCompiledDataContext[1] == null))
         {
             cachedCompiledDataContext[1] = new InitializeDynamicValue_TypedDataContext2(locations, activityContext, true);
         }
         InitializeDynamicValue_TypedDataContext2 refDataContext3 = ((InitializeDynamicValue_TypedDataContext2)(cachedCompiledDataContext[1]));
         return(refDataContext3.GetLocation <Microsoft.Activities.DynamicValue>(refDataContext3.ValueType___Expr3Get, refDataContext3.ValueType___Expr3Set, expressionId, this.rootActivity, activityContext));
     }
     return(null);
 }
 internal virtual bool TryGetValue(ActivityContext context, out TResult value)
 {
     value = default(TResult);
     return(false);
 }