public IPersistablePropertyValueProvider GetPersistablePropertyValueProvider( PersistanceLocation location )
        {
            IPersistablePropertyValueProvider result = null;
            switch ( location )
            {
                case PersistanceLocation.Cookie:
                    result = new CookiePropertyValueProvider();
                    break;
                case PersistanceLocation.Session:
                    result = new SessionPropertyValueProvider();
                    break;
            }

            return result;
        }
        public IPersistablePropertyValueProvider GetPersistablePropertyValueProvider(PersistanceLocation location)
        {
            IPersistablePropertyValueProvider result = null;

            switch (location)
            {
            case PersistanceLocation.Cookie:
                result = new CookiePropertyValueProvider(_serviceProvider.GetService(typeof(IHttpContextWrapper)) as IHttpContextWrapper);
                break;

            case PersistanceLocation.Session:
                result = new SessionPropertyValueProvider(_serviceProvider.GetService(typeof(IHttpContextWrapper)) as IHttpContextWrapper);
                break;
            }

            return(result);
        }
Ejemplo n.º 3
0
        public IPersistablePropertyValueProvider GetPersistablePropertyValueProvider(PersistanceLocation location)
        {
            IPersistablePropertyValueProvider result = null;

            switch (location)
            {
            case PersistanceLocation.Cookie:
                result = new CookiePropertyValueProvider();
                break;

            case PersistanceLocation.Session:
                result = new SessionPropertyValueProvider();
                break;
            }

            return(result);
        }
 public PersistAttribute( PersistanceLocation persistanceLocation )
 {
     PersistanceLocation = persistanceLocation;
 }
Ejemplo n.º 5
0
 public IPersistablePropertyValueProvider GetPersistablePropertyValueProvider(PersistanceLocation location)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 6
0
 public PersistAttribute(PersistanceLocation persistanceLocation)
 {
     PersistanceLocation = persistanceLocation;
 }