示例#1
0
        public object Clone()
        {
            Writethru writethru = new Writethru();

            writethru.enabled   = enabled;
            writethru.Providers = Providers != null?Providers.Clone() as Provider[] : null;

            writethru.WriteBehind = WriteBehind != null?WriteBehind.Clone() as WriteBehind : null;

            return(writethru);
        }
示例#2
0
            private static Writethru GetWriteThru(Hashtable settings)
            {
                Writethru writeThru = new Writethru();

                if (settings.ContainsKey("write-thru-providers"))
                {
                    writeThru.Providers = GetProviders(settings["write-thru-providers"] as Hashtable);
                }
                if (settings.ContainsKey("write-behind"))
                {
                    writeThru.WriteBehind = GetWriteBehind(settings["write-behind"] as Hashtable);
                }
                return(writeThru);
            }
示例#3
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     readthru  = reader.ReadObject() as Readthru;
     writehtru = reader.ReadObject() as Writethru;
 }