Exemplo n.º 1
0
		public static IFeedStorage Create()
		{
			var ctx = DisposableHttpContext.Current;
			
			var storage = ctx[key] as IFeedStorage;
			if (storage == null)
			{
				storage = new DbFeedStorage(TenantProvider.CurrentTenantID);
				ctx[key] = storage;
			}
			return storage;
		}
        public static IFeedStorage Create()
        {
            var ctx = DisposableHttpContext.Current;

            var storage = ctx[Key] as IFeedStorage;

            if (storage == null)
            {
                storage  = new DbFeedStorage(TenantProvider.CurrentTenantID);
                ctx[Key] = storage;
            }
            return(storage);
        }