本文整理汇总了C#中IUnitOfWorkFactory类的典型用法代码示例。如果您正苦于以下问题:C# IUnitOfWorkFactory类的具体用法?C# IUnitOfWorkFactory怎么用?C# IUnitOfWorkFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUnitOfWorkFactory类属于命名空间,在下文中一共展示了IUnitOfWorkFactory类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: FilesController
public FilesController(IFileSystemService fileSystemService, IUnitOfWorkFactory unitOfWorkFactory, ILogService logService, ICacheWrapper cacheWrapper)
{
_fileSystemService = fileSystemService;
_unitOfWorkFactory = unitOfWorkFactory;
_logService = logService;
_cacheWrapper = cacheWrapper;
}
开发者ID:altaricka,项目名称:vDesign,代码行数:7,代码来源:FilesController.cs
示例2: ZinOSDesktopDropboxAccountImpl
public ZinOSDesktopDropboxAccountImpl(IUserDropboxAccountService userDropboxAccountService,
IZinOSDesktopRepository zinOSDesktopRespository, IUnitOfWorkFactory unitOfWorkFactory)
{
_userDropboxAccountService = userDropboxAccountService;
_zinOSDesktopRespository = zinOSDesktopRespository;
_unitOfWorkFactory = unitOfWorkFactory;
}
开发者ID:hiddenbyte,项目名称:ZinOS,代码行数:7,代码来源:ZinOSDesktopDropboxAccountImpl.cs
示例3: BeforeEachTest
protected virtual void BeforeEachTest()
{
CreateMappings.Create();
Mockery = new MockRepository();
UnitOfWorkFactory = Mockery.DynamicMock<IUnitOfWorkFactory>();
UnitOfWork = Mockery.DynamicMock<IUnitOfWork>();
}
开发者ID:AndreyB1990,项目名称:Task1,代码行数:7,代码来源:ControllerFixtureBase.cs
示例4: LargeNumberOfIndividualWrites
public LargeNumberOfIndividualWrites()
{
Bootstrapper.Start();
this.dataCommandProvider = ObjectFactory.GetInstance<DataCommandProvider>();
this.unitOfWorkFactory = ObjectFactory.GetInstance<IUnitOfWorkFactory>();
}
开发者ID:LeadPipeSoftware,项目名称:LeadPipe.Net.NHibernateExamples,代码行数:7,代码来源:LargeNumberOfIndividualWrites.cs
示例5: UserTracksService
public UserTracksService(IUnitOfWorkFactory unitOfWorkFactory, IMusicServiceFactory musicServiceFactory)
{
_unitOfWorkFactory = unitOfWorkFactory;
_musicServiceFactory = musicServiceFactory;
}
开发者ID:IhorSyerkov,项目名称:Azimuth,代码行数:7,代码来源:UserTracksService.cs
示例6: DataService
protected DataService(IUnitOfWorkFactory unitOfWorkFactory)
{
if (unitOfWorkFactory == null)
throw new ArgumentNullException("unitOfWorkFactory");
_unitOfWorkFactory = unitOfWorkFactory;
}
开发者ID:besmirzanaj,项目名称:DeploymentCockpit,代码行数:7,代码来源:DataService.cs
示例7: LanguageService
public LanguageService(IUnitOfWorkFactory unitOfWorkFactory)
{
if (unitOfWorkFactory == null)
throw new ArgumentNullException(nameof(unitOfWorkFactory));
_unitOfWorkFactory = unitOfWorkFactory;
}
开发者ID:dyatlov-a,项目名称:cEditor,代码行数:7,代码来源:LanguageService.cs
示例8: RequestService
public RequestService(IUnitOfWorkFactory unitOfWorkFactory, IDateTimeService dateTimeService, IStateManagerService stateManagerService, ITuWebService tuWebService)
{
_unitOfWorkFactory = unitOfWorkFactory;
_dateTimeService = dateTimeService;
_stateManagerService = stateManagerService;
_tuWebService = tuWebService;
}
开发者ID:keskival,项目名称:2,代码行数:7,代码来源:RequestService.cs
示例9: DuplicatedBusinessRules
public DuplicatedBusinessRules()
{
Bootstrapper.Start();
this.dataCommandProvider = ObjectFactory.GetInstance<DataCommandProvider>();
this.unitOfWorkFactory = ObjectFactory.GetInstance<IUnitOfWorkFactory>();
}
开发者ID:LeadPipeSoftware,项目名称:LeadPipe.Net.NHibernateExamples,代码行数:7,代码来源:DuplicatedBusinessRules.cs
示例10: DividendService
public DividendService(IStockPositionCalculator stockPositionCalculator, IUnitOfWorkFactory uowFactory)
{
Guard.AgainstNull(() => stockPositionCalculator, () => uowFactory);
_stockPositionCalculator = stockPositionCalculator;
_uowFactory = uowFactory;
}
开发者ID:peter-h4nsen,项目名称:StockBuddy,代码行数:7,代码来源:DividendService.cs
示例11: ServicesService
public ServicesService(IUnitOfWorkFactory unitOfWorkFactory, ILogger logger, ISettingsService settingsService, IMailManagementService mailManagementService)
{
_mailManagementService = mailManagementService;
_settingsService = settingsService;
_unitOfWorkFactory = unitOfWorkFactory;
_logger = logger;
}
开发者ID:sito92,项目名称:Praca-inzynierska,代码行数:7,代码来源:ServicesService.cs
示例12: AnemicDomainModel
public AnemicDomainModel()
{
Bootstrapper.Start();
this.dataCommandProvider = ObjectFactory.GetInstance<DataCommandProvider>();
this.unitOfWorkFactory = ObjectFactory.GetInstance<IUnitOfWorkFactory>();
}
开发者ID:LeadPipeSoftware,项目名称:LeadPipe.Net.NHibernateExamples,代码行数:7,代码来源:AnemicDomainModel.cs
示例13: GuestUserService
public GuestUserService(
IGuestRoleProvider guestRoleProvider, IUnitOfWorkFactory unitOfWorkFactory, IUserCategoryService userCategoryService)
{
_guestRoleProvider = guestRoleProvider;
_unitOfWorkFactory = unitOfWorkFactory;
_userCategoryService = userCategoryService;
}
开发者ID:altaricka,项目名称:vDesign,代码行数:7,代码来源:GuestUserService.cs
示例14: GuestRoleProvider
public GuestRoleProvider(IRoleService roleService, IUnitOfWorkFactory unitOfWorkFactory)
{
using (var uow = unitOfWorkFactory.CreateSystem())
{
var role = roleService.GetAll(uow).FirstOrDefault(x => x.SystemRole == SystemRole.Base);
if (role != null)
{
List<Role> roles = role.Roles.SelectRecursive(x => x.Roles).Select(x => x.Item).Distinct().ToList();
roles.Add(role);
_roles = new List<Role>
{
new Role
{
ChildRoles = new List<ChildRole>(),
Name = "GustRole",
SystemRole = SystemRole.Base,
Permissions = roles
.SelectMany(m => m.Permissions)
.OrderBy(m => m.FullName)
.Select(x => new Permission(){
FullName = x.FullName,
AllowRead = x.AllowRead,
AllowWrite = x.AllowWrite,
AllowCreate = x.AllowCreate,
AllowDelete = x.AllowDelete,
AllowNavigate = x.AllowNavigate,
}).ToList()
}
};
}
}
}
开发者ID:altaricka,项目名称:vDesign,代码行数:35,代码来源:GuestRoleProvider.cs
示例15: CompositeDatabaseKeys
public CompositeDatabaseKeys()
{
Bootstrapper.Start();
this.dataCommandProvider = ObjectFactory.GetInstance<DataCommandProvider>();
this.unitOfWorkFactory = ObjectFactory.GetInstance<IUnitOfWorkFactory>();
}
开发者ID:LeadPipeSoftware,项目名称:LeadPipe.Net.NHibernateExamples,代码行数:7,代码来源:CompositeDatabaseKeys.cs
示例16: SelectNPlusOne
public SelectNPlusOne()
{
Bootstrapper.Start();
this.dataCommandProvider = ObjectFactory.GetInstance<DataCommandProvider>();
this.unitOfWorkFactory = ObjectFactory.GetInstance<IUnitOfWorkFactory>();
}
开发者ID:LeadPipeSoftware,项目名称:LeadPipe.Net.NHibernateExamples,代码行数:7,代码来源:SelectNPlusOne.cs
示例17: TradeService
public TradeService(IUnitOfWorkFactory uowFactory, IStockPositionCalculator stockPositionCalculator)
{
Guard.AgainstNull(() => uowFactory, () => stockPositionCalculator);
_uowFactory = uowFactory;
_stockPositionCalculator = stockPositionCalculator;
}
开发者ID:peter-h4nsen,项目名称:StockBuddy,代码行数:7,代码来源:TradeService.cs
示例18: ColorService
public ColorService(IPlayerRepository playerRepository, IGameRoundRepository gameRoundRepository, IUnitOfWorkFactory unitOfWorkFactory, IGameRoundScorerSpecification gameRoundScorerSpecification)
{
_playerRepository = playerRepository;
_gameRoundRepository = gameRoundRepository;
_unitOfWorkFactory = unitOfWorkFactory;
_gameRoundScorerSpecification = gameRoundScorerSpecification;
}
开发者ID:joeyshipley,项目名称:ColorTime,代码行数:7,代码来源:ColorService.cs
示例19: MoreThanOneSessionPerRequest
public MoreThanOneSessionPerRequest()
{
Bootstrapper.Start();
this.dataCommandProvider = ObjectFactory.GetInstance<DataCommandProvider>();
this.unitOfWorkFactory = ObjectFactory.GetInstance<IUnitOfWorkFactory>();
}
开发者ID:LeadPipeSoftware,项目名称:LeadPipe.Net.NHibernateExamples,代码行数:7,代码来源:MoreThanOneSessionPerRequest.cs
示例20: Server
public Server(IEventPublisher eventPublisher, IDomainModelStateManager stateManager, ICommandProcessorFactory commandProcessorFactory, IUnitOfWorkFactory unitOfWorkFactory)
{
_eventPublisher = eventPublisher;
_stateManager = stateManager;
_commandProcessorFactory = commandProcessorFactory;
_unitOfWorkFactory = unitOfWorkFactory;
}
开发者ID:DmitryNaumov,项目名称:TestCQRS,代码行数:7,代码来源:Server.cs
注:本文中的IUnitOfWorkFactory类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论