Dev2.DynamicServices.FileSystemInstanceStore.ProcessLoadWorkflow C# (CSharp) Method

ProcessLoadWorkflow() private method

private ProcessLoadWorkflow ( System.Runtime.DurableInstancing.InstancePersistenceContext context, System.Activities.DurableInstancing.LoadWorkflowCommand command ) : Exception
context System.Runtime.DurableInstancing.InstancePersistenceContext
command System.Activities.DurableInstancing.LoadWorkflowCommand
return System.Exception
        private Exception ProcessLoadWorkflow(
            InstancePersistenceContext context,
            LoadWorkflowCommand command)
        {


            try
            {
                if(command.AcceptUninitializedInstance)
                {
                    context.LoadedInstance(InstanceState.Uninitialized,
                        null, null, null, null);
                }
                else
                {
                    SharedLoadWorkflow(context, context.InstanceView.InstanceId);
                }
                return null;
            }
            catch(InstancePersistenceException exception)
            {
                Console.WriteLine(
                    // ReSharper disable LocalizableElement
                    "ProcessLoadWorkflow exception: {0}",
                    // ReSharper restore LocalizableElement
                    exception.Message);
                return exception;
            }


        }