using Quadarax.Foundation.Core.Attributes;
using Quadarax.Foundation.Core.Data.Interface.Domain;

namespace Quadarax.Foundation.Core.Data.Domain
{
    //[DiModule]
    //[DiImplementsOf(typeof(IUnitOfWork<IDomain>), LifeCycleTypeEnum.Scoped)]
    //[DiImplementsOf(typeof(IUnitOfWork<DataDomain>), LifeCycleTypeEnum.Scoped)]
    public class UnitOfWorkDataDomain : UnitOfWork<DataDomain>, IUnitOfWork<IDomain>
    {
        public UnitOfWorkDataDomain(IDomainContextResolver<DataDomain> context) : base(context)
        {
        }

        IDomain IUnitOfWork<IDomain>.Context => Context;
    }
}
