Ejemplo n.º 1
0
        public object Clone()
        {
            BackingSource store = new BackingSource();

            store.Readthru  = Readthru != null ? (Readthru)Readthru.Clone(): null;
            store.Writethru = Writethru != null ? (Writethru)Writethru.Clone(): null;
            return(store);
        }
Ejemplo n.º 2
0
        public object Clone()
        {
            Readthru readthru = new Readthru();

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

            //readthru.Parameters = Parameters != null ? Parameters.Clone() as Parameter[] : null;
            return(readthru);
        }
Ejemplo n.º 3
0
            private static Readthru GetReadThru(Hashtable settings)
            {
                Readthru readThru = new Readthru();

                if (settings.ContainsKey("read-thru-providers"))
                {
                    readThru.Providers = GetProviders(settings["read-thru-providers"] as Hashtable);
                }
                return(readThru);
            }
Ejemplo n.º 4
0
 public void Deserialize(Runtime.Serialization.IO.CompactReader reader)
 {
     readthru  = reader.ReadObject() as Readthru;
     writehtru = reader.ReadObject() as Writethru;
 }