protected virtual void OnLoadUnhandledAttribute(XmlAttribute attribute) { if (attribute.NamespaceURI == Framework.Common.SME.Namespace) { switch (attribute.LocalName) { case CanGetName: bool.TryParse(attribute.Value, out _bCanGet); break; case CanPostName: bool.TryParse(attribute.Value, out _bCanPost); break; case CanPutName: bool.TryParse(attribute.Value, out _bCanPut); break; case CanDeleteName: bool.TryParse(attribute.Value, out _bCanDelete); break; case CanSearchName: bool.TryParse(attribute.Value, out _bCanSearch); break; case PathName: _strPath = attribute.Value; break; case PluralNameName: _strPluralName = attribute.Value; break; case LabelName: _strLabel = attribute.Value; break; case CanPagePreviousName: bool.TryParse(attribute.Value, out _bCanPagePrevious); break; case CanPageNextName: bool.TryParse(attribute.Value, out _bCanPageNext); break; case CanPageIndexName: bool.TryParse(attribute.Value, out _bCanPageIndex); break; case SupportsETagName: bool.TryParse(attribute.Value, out _bSupportsETag); break; case HasUuidName: bool.TryParse(attribute.Value, out _bHasUuid); break; case HasTemplateName: bool.TryParse(attribute.Value, out _bHasTemplate); break; case BatchingModeName: _eBatchingMode = GetBatchingMode(attribute.Value); break; case RoleName: _eRole = GetRole(attribute.Value); break; case IsSyncSourceName: bool.TryParse(attribute.Value, out _bIsSyncSource); break; case IsSyncTargetName: bool.TryParse(attribute.Value, out _bIsSyncTarget); break; } } }
internal SMEResource(SMEResource copy) { _bCanGet = copy.CanGet; _bCanPost = copy.CanPost; _bCanPut = copy.CanPut; _bCanDelete = copy.CanDelete; _bCanSearch = copy.CanSearch; _strPath = copy.Path; _strPluralName = copy.PluralName; _strLabel = copy.Label; _bCanPagePrevious = copy.CanPagePrevious; _bCanPageNext = copy.CanPageNext; _bCanPageIndex = copy.CanPageIndex; _bSupportsETag = copy.SupportsETag; _bHasUuid = copy.HasUuid; _bHasTemplate = copy.HasTemplate; _eBatchingMode = copy.BatchingMode; _eRole = copy.Role; _bIsSyncSource = copy.IsSyncSource; _bIsSyncTarget = copy.IsSyncTarget; }