Ejemplo n.º 1
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);
            WindowsStreamSecurityElement element = (WindowsStreamSecurityElement)from;

            this.ProtectionLevel = element.ProtectionLevel;
        }
Ejemplo n.º 2
0
        public override void CopyFrom(ServiceModelExtensionElement from)
        {
            base.CopyFrom(from);

            WindowsStreamSecurityElement source = (WindowsStreamSecurityElement)from;

#pragma warning suppress 56506 // Microsoft, base.CopyFrom() validates the argument
            this.ProtectionLevel = source.ProtectionLevel;
        }