Ejemplo n.º 1
0
        protected override WfExtraProcessPersistManagerCollection GetDefaultPersisters()
        {
            WfExtraProcessPersistManagerCollection result = new WfExtraProcessPersistManagerCollection();

            result.Add(new WfCurrentAssigneesPersistManager());
            result.Add(new WfProcessRelativeParamsPersistManager());

            return(result);
        }
        private WfExtraProcessPersistManagerCollection GetConfigedPersisters()
        {
            WfExtraProcessPersistManagerCollection result = new WfExtraProcessPersistManagerCollection();

            foreach (TypeConfigurationElement typeElement in this.Persisters)
            {
                result.Add(typeElement.CreateInstance <IWfExtraProcessPersistManager>());
            }

            return(result);
        }
        public WfExtraProcessPersistManagerCollection GetPersisters()
        {
            if (this._PersistersList == null)
            {
                lock (this._SyncObject)
                {
                    if (this._PersistersList == null)
                    {
                        if (this._UseDefault)
                        {
                            this._PersistersList = GetDefaultPersisters();
                        }
                        else
                        {
                            this._PersistersList = GetConfigedPersisters();
                        }
                    }
                }
            }

            return(this._PersistersList);
        }
        protected virtual WfExtraProcessPersistManagerCollection GetDefaultPersisters()
        {
            WfExtraProcessPersistManagerCollection result = new WfExtraProcessPersistManagerCollection();

            return(result);
        }