Ejemplo n.º 1
0
        private static string findScope(XmlElement familyElement)
        {
            var returnValue = InstanceScope.Transient;

            familyElement.ForAttributeValue(SCOPE,
                                            scope => { returnValue = scope; });

            return returnValue;
        }
Ejemplo n.º 2
0
        private static InstanceScope findScope(XmlElement familyElement)
        {
            InstanceScope returnValue = InstanceScope.PerRequest;

            familyElement.ForAttributeValue(SCOPE,
                                            scope => { returnValue = (InstanceScope) Enum.Parse(typeof (InstanceScope), scope); });

            return returnValue;
        }