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); }
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); }