summaryrefslogtreecommitdiff
path: root/product/DataAccess/Transactions/ContextFactory.cs
blob: 6ece11ad116b520403d81fb93012fdddf3dd0306 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
namespace Gorilla.Commons.Infrastructure.Transactions
{
    public interface IContextFactory
    {
        IContext create_for(IScopedStorage storage);
    }

    public class ContextFactory : IContextFactory
    {
        public IContext create_for(IScopedStorage storage)
        {
            return new Context(storage.provide_storage());
        }
    }
}