Esempio n. 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected WfActivityDescriptor(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            this._ToTransitions   = (ToTransitionsDescriptorCollection)info.GetValue("ToTransitions", typeof(ToTransitionsDescriptorCollection));
            this._FromTransitions = (FromTransitionsDescriptorCollection)info.GetValue("FromTransitions", typeof(FromTransitionsDescriptorCollection));

            this._Process            = (WfProcessDescriptor)info.GetValue("Process", typeof(WfProcessDescriptor));
            this._Resources          = (WfResourceDescriptorCollection)info.GetValue("Resources", typeof(WfResourceDescriptorCollection));
            this._Variables          = (WfVariableDescriptorCollection)info.GetValue("Variables", typeof(WfVariableDescriptorCollection));
            this._ExtendedProperties = (WfExtendedPropertyDictionary)info.GetValue("ExtendedProperty", typeof(WfExtendedPropertyDictionary));
        }
Esempio n. 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="info"></param>
        /// <param name="context"></param>
        protected WfOperationDescriptor(SerializationInfo info, StreamingContext context)
            : base(info, context)
        {
            this._DefaultBranchProcessDescKey = (string)info.GetValue("DefaultBranchProcessDescKey", typeof(string));
            this._CompleteCondition           = (AnchorOperationCompleteCondition)info.GetValue("CompleteCondition", typeof(AnchorOperationCompleteCondition));
            this._Resources = (WfResourceDescriptorCollection)info.GetValue("Resources",
                                                                            typeof(WfResourceDescriptorCollection));

            this._Variables = (WfVariableDescriptorCollection)info.GetValue("Variables", typeof(WfVariableDescriptorCollection));
            this._AutoTransferWhenCompleted = (bool)info.GetValue("AutoTransferWhenCompleted", typeof(bool));
        }