本文整理汇总了C#中IUnitOfWorkManager类的典型用法代码示例。如果您正苦于以下问题:C# IUnitOfWorkManager类的具体用法?C# IUnitOfWorkManager怎么用?C# IUnitOfWorkManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUnitOfWorkManager类属于命名空间,在下文中一共展示了IUnitOfWorkManager类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: BlogAppService
public BlogAppService(IStarRepository starRepository, IRepository<Blog> blogRepository, IRepository<User, long> userRepository, IUnitOfWorkManager unitOfWorkManager)
{
_starRepository = starRepository;
_blogRepository = blogRepository;
_userRepository = userRepository;
_unitOfWorkManager = unitOfWorkManager;
}
示例2: AbpUowActionFilter
public AbpUowActionFilter(
IUnitOfWorkManager unitOfWorkManager,
IAbpAspNetCoreConfiguration configuration)
{
_unitOfWorkManager = unitOfWorkManager;
_configuration = configuration;
}
示例3: SnippetsController
public SnippetsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService,
IMembershipUserPointsService membershipUserPointsService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
{
_membershipUserPointsService = membershipUserPointsService;
}
示例4: AccountController
public AccountController(
UserManager userManager,
IMultiTenancyConfig multiTenancyConfig,
IUserEmailer userEmailer,
RoleManager roleManager,
TenantManager tenantManager,
IUnitOfWorkManager unitOfWorkManager,
ITenancyNameFinder tenancyNameFinder,
ICacheManager cacheManager,
IAppNotifier appNotifier,
IWebUrlService webUrlService,
AbpLoginResultTypeHelper abpLoginResultTypeHelper,
IUserLinkManager userLinkManager,
INotificationSubscriptionManager notificationSubscriptionManager)
{
_userManager = userManager;
_multiTenancyConfig = multiTenancyConfig;
_userEmailer = userEmailer;
_roleManager = roleManager;
_tenantManager = tenantManager;
_unitOfWorkManager = unitOfWorkManager;
_tenancyNameFinder = tenancyNameFinder;
_cacheManager = cacheManager;
_webUrlService = webUrlService;
_appNotifier = appNotifier;
_abpLoginResultTypeHelper = abpLoginResultTypeHelper;
_userLinkManager = userLinkManager;
_notificationSubscriptionManager = notificationSubscriptionManager;
}
示例5: FileController
public FileController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, IUploadedFileService uploadedFileService, ICategoryService categoryService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService, cacheService)
{
_uploadedFileService = uploadedFileService;
_categoryService = categoryService;
}
示例6: UnitOfWork
public UnitOfWork(IDataContext dataContext, IUnitOfWorkManager manager)
{
State = UnitOfWorkState.Active;
DataContext = dataContext;
Manager = manager;
Manager.Add(this);
}
示例7: TagController
public TagController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService, ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicTagService topicTagService, ICategoryService categoryService, ICacheService cacheService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
{
_topicTagService = topicTagService;
_categoryService = categoryService;
_cacheService = cacheService;
}
示例8: SettingStore
/// <summary>
/// Constructor.
/// </summary>
public SettingStore(
IRepository<Setting, long> settingRepository,
IUnitOfWorkManager unitOfWorkManager)
{
_settingRepository = settingRepository;
_unitOfWorkManager = unitOfWorkManager;
}
示例9: Initialize
public static void Initialize(IUnitOfWorkManager manager)
{
Reset();
Manager = manager;
Manager.Policy = _globalPolicy;
}
示例10: AdminBadgeController
/// <summary>
/// Constructor
/// </summary>
/// <param name="unitOfWorkManager"> </param>
/// <param name="membershipService"> </param>
/// <param name="localizationService"></param>
/// <param name="settingsService"> </param>
/// <param name="badgeService"> </param>
/// <param name="loggingService"> </param>
public AdminBadgeController(IBadgeService badgeService, IPostService postService, ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager,
IMembershipService membershipService, ILocalizationService localizationService, ISettingsService settingsService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, settingsService)
{
_badgeService = badgeService;
_postService = postService;
}
示例11: AbpMvcUowFilter
public AbpMvcUowFilter(
IUnitOfWorkManager unitOfWorkManager,
IAbpMvcConfiguration configuration)
{
_unitOfWorkManager = unitOfWorkManager;
_configuration = configuration;
}
示例12: Setup
public void Setup()
{
basketRepository = MockRepository.GenerateStub<IRepository<Basket>>();
unitOfWorkManager = MockRepository.GenerateStub<IUnitOfWorkManager>();
userService = MockRepository.GenerateStub<IUserService>();
postageService = MockRepository.GenerateStub<IPostageService>();
countryRepository = MockRepository.GenerateStub<IRepository<Country>>();
cardTypeRepository = MockRepository.GenerateStub<IRepository<CardType>>();
orderRepository = MockRepository.GenerateStub<IRepository<Order>>();
subscriptionRepository = MockRepository.GenerateStub<IRepository<MailingListSubscription>>();
emailService = MockRepository.GenerateStub<IEmailService>();
var mocks = new MockRepository(); //TODO: No need to partial mock once email sending is fixed
controller = new CheckoutController(
basketRepository,
userService,
postageService,
countryRepository,
cardTypeRepository,
orderRepository,
unitOfWorkManager,
emailService,
subscriptionRepository
);
mocks.ReplayAll();
userService.Expect(us => us.CurrentUser).Return(new User { UserId = 4, RoleId = Role.AdministratorId });
}
示例13: MenuAppService
public MenuAppService(INavigationManager navigationManager, MenuManager menuManager, IRepository<Menu> menuRepository, IUnitOfWorkManager unitOfWorkManager)
{
_menuRepository = menuRepository;
_unitOfWorkManager = unitOfWorkManager;
_menuManager = menuManager;
_navigationManager = navigationManager;
}
示例14: StatsController
public StatsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, ITopicService topicService, IPostService postService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
{
_topicService = topicService;
_postService = postService;
}
示例15: ToolsController
public ToolsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService,
ISettingsService settingsService,
ILocalizationService localizationService,
IRoleService roleService)
: base(loggingService, unitOfWorkManager, userService, settingsService, localizationService)
{
}