Exemplo n.º 1
0
        // Token: 0x060016BE RID: 5822 RVA: 0x00027CD8 File Offset: 0x00026CD8
        public static WorkflowRunner Construct(string workflow, InternalCollection collection)
        {
            WorkflowElement workflowElement = Activator.CreateInstance <WorkflowElement>(workflow);

            if (workflowElement != null)
            {
                ICollectionOwner collectionOwner = workflowElement as ICollectionOwner;
                if (collectionOwner != null)
                {
                    collectionOwner.Bind(collection);
                }
                return(new WorkflowRunner(workflowElement));
            }
            return(null);
        }