Ejemplo n.º 1
0
        public StoreType Set(object value, Type boundedType, ItemLifespan lifespan)
        {
            var type = boundedType;

            lock (accessLock)
            {
                values[type]    = value;
                lifespans[type] = lifespan;
            }

            return(this as StoreType);
        }
Ejemplo n.º 2
0
        public StoreType Set(object value, ItemLifespan lifespan)
        {
            var type = value.GetType();

            lock (accessLock)
            {
                values[type]    = value;
                lifespans[type] = lifespan;
            }

            return(this as StoreType);
        }