Changeset 932


Ignore:
Timestamp:
5/1/2009 12:37:23 AM (6 years ago)
Author:
lowjoel
Message:

-The serialisation constructor and GetObjectData? must be protected and marked with SecurityPermission? respectively.
-FatalException? should implement the default constructor as well as the serialisation constructor.

Location:
branches/eraser6/Manager
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/eraser6/Manager/Logger.cs

    r930 r932  
    189189 
    190190        #region ISerializable Members 
    191         public LogSessionDictionary(SerializationInfo info, StreamingContext context) 
     191        protected LogSessionDictionary(SerializationInfo info, StreamingContext context) 
    192192        { 
    193193            dictionary = (Dictionary<DateTime, LogEntryCollection>)info.GetValue("Dictionary", 
     
    195195        } 
    196196 
    197         public void GetObjectData(SerializationInfo info, StreamingContext context) 
     197        [SecurityPermission(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)] 
     198        public virtual void GetObjectData(SerializationInfo info, StreamingContext context) 
    198199        { 
    199200            info.AddValue("Dictionary", dictionary); 
  • branches/eraser6/Manager/Manager.cs

    r915 r932  
    2323using System.Collections.Generic; 
    2424using System.Text; 
     25using System.Runtime.Serialization; 
    2526 
    2627namespace Eraser.Manager 
     
    119120    public class FatalException : Exception 
    120121    { 
     122        public FatalException() 
     123        { 
     124        } 
     125 
    121126        public FatalException(string message) 
    122127            : base(message) 
     128        { 
     129        } 
     130 
     131        public FatalException(SerializationInfo info, StreamingContext context) 
     132            : base(info, context) 
    123133        { 
    124134        } 
  • branches/eraser6/Manager/Manager.csproj

    r899 r932  
    33    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> 
    44    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> 
    5     <ProductVersion>9.0.21022</ProductVersion> 
     5    <ProductVersion>9.0.30729</ProductVersion> 
    66    <SchemaVersion>2.0</SchemaVersion> 
    77    <ProjectGuid>{C1AC3255-0939-499D-A69D-725E3DD4F574}</ProjectGuid> 
Note: See TracChangeset for help on using the changeset viewer.