コード例 #1
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;
        }
コード例 #2
0
        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);
        }
コード例 #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);
        }
コード例 #4
0
 public PersistAttribute( PersistanceLocation persistanceLocation )
 {
     PersistanceLocation = persistanceLocation;
 }
コード例 #5
0
 public IPersistablePropertyValueProvider GetPersistablePropertyValueProvider(PersistanceLocation location)
 {
     throw new NotImplementedException();
 }
コード例 #6
0
 public PersistAttribute(PersistanceLocation persistanceLocation)
 {
     PersistanceLocation = persistanceLocation;
 }