Changeset 919


Ignore:
Timestamp:
04/29/09 08:16:17 (5 years ago)
Author:
lowjoel
Message:

Fix CA2123.

Location:
branches/eraser6
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/DefaultPlugins/EraseCustom.cs

    r908 r919  
    2626 
    2727using Eraser.Manager; 
     28using System.Security.Permissions; 
    2829 
    2930namespace Eraser.DefaultPlugins 
     
    113114 
    114115        #region ISerializable Members 
     116        [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 
    115117        public virtual void GetObjectData(SerializationInfo info, StreamingContext context) 
    116118        { 
  • branches/eraser6/Manager/Logger.cs

    r915 r919  
    2424using System.Text; 
    2525using System.Runtime.Serialization; 
     26using System.Security.Permissions; 
    2627 
    2728namespace Eraser.Manager 
     
    7778        } 
    7879 
     80        [SecurityPermission(SecurityAction.Demand, SerializationFormatter=true)] 
    7981        public virtual void GetObjectData(SerializationInfo info, StreamingContext context) 
    8082        { 
     
    202204        } 
    203205 
     206        [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 
    204207        public void GetObjectData(SerializationInfo info, StreamingContext context) 
    205208        { 
  • branches/eraser6/Manager/Schedule.cs

    r915 r919  
    2626using System.Runtime.Serialization; 
    2727using Eraser.Util; 
     28using System.Security.Permissions; 
    2829 
    2930namespace Eraser.Manager 
     
    4445            } 
    4546 
    46             public override void GetObjectData(SerializationInfo info, 
    47                 StreamingContext context) 
     47            [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 
     48            public override void GetObjectData(SerializationInfo info, StreamingContext context) 
    4849            { 
    4950            } 
     
    6869            } 
    6970 
    70             public override void GetObjectData(SerializationInfo info, 
    71                 StreamingContext context) 
     71            [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 
     72            public override void GetObjectData(SerializationInfo info, StreamingContext context) 
    7273            { 
    7374            } 
     
    100101        /// <param name="info">The SerializationInfo to populate with data.</param> 
    101102        /// <param name="context">The destination for this serialization.</param> 
     103        [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 
    102104        public abstract void GetObjectData(SerializationInfo info, StreamingContext context); 
    103105 
     
    184186        } 
    185187 
    186         public override void GetObjectData(SerializationInfo info, 
    187             StreamingContext context) 
     188        [SecurityPermission(SecurityAction.Demand, SerializationFormatter = true)] 
     189        public override void GetObjectData(SerializationInfo info, StreamingContext context) 
    188190        { 
    189191            info.AddValue("Type", type); 
Note: See TracChangeset for help on using the changeset viewer.