本文整理汇总了C#中IUnitOfWorkManager类的典型用法代码示例。如果您正苦于以下问题:C# IUnitOfWorkManager类的具体用法?C# IUnitOfWorkManager怎么用?C# IUnitOfWorkManager使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IUnitOfWorkManager类属于命名空间,在下文中一共展示了IUnitOfWorkManager类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: BlogAppService
public BlogAppService(IStarRepository starRepository, IRepository<Blog> blogRepository, IRepository<User, long> userRepository, IUnitOfWorkManager unitOfWorkManager)
{
_starRepository = starRepository;
_blogRepository = blogRepository;
_userRepository = userRepository;
_unitOfWorkManager = unitOfWorkManager;
}
开发者ID:Beimen1,项目名称:StarBlogs,代码行数:7,代码来源:BlogAppService.cs
示例2: AbpUowActionFilter
public AbpUowActionFilter(
IUnitOfWorkManager unitOfWorkManager,
IAbpAspNetCoreConfiguration configuration)
{
_unitOfWorkManager = unitOfWorkManager;
_configuration = configuration;
}
开发者ID:ZhaoRd,项目名称:aspnetboilerplate,代码行数:7,代码来源:AbpUowActionFilter.cs
示例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;
}
开发者ID:lenwen,项目名称:mvcforum,代码行数:7,代码来源:SnippetsController.cs
示例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;
}
开发者ID:Zbun,项目名称:Gld.Activity.Project,代码行数:29,代码来源:AccountController.cs
示例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;
}
开发者ID:lenwen,项目名称:mvcforum,代码行数:7,代码来源:FileController.cs
示例6: UnitOfWork
public UnitOfWork(IDataContext dataContext, IUnitOfWorkManager manager)
{
State = UnitOfWorkState.Active;
DataContext = dataContext;
Manager = manager;
Manager.Add(this);
}
开发者ID:scrato,项目名称:RPA-RO_Business_Logic,代码行数:7,代码来源:UnitOfWork.cs
示例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;
}
开发者ID:huchao007,项目名称:mvcforum,代码行数:7,代码来源:TagController.cs
示例8: SettingStore
/// <summary>
/// Constructor.
/// </summary>
public SettingStore(
IRepository<Setting, long> settingRepository,
IUnitOfWorkManager unitOfWorkManager)
{
_settingRepository = settingRepository;
_unitOfWorkManager = unitOfWorkManager;
}
开发者ID:Zbun,项目名称:Gld.Activity.Project,代码行数:10,代码来源:SettingStore.cs
示例9: Initialize
public static void Initialize(IUnitOfWorkManager manager)
{
Reset();
Manager = manager;
Manager.Policy = _globalPolicy;
}
开发者ID:Kobusdutoit,项目名称:Anodyne,代码行数:7,代码来源:UnitOfWork.cs
示例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;
}
开发者ID:molntamas,项目名称:mvcforum,代码行数:16,代码来源:AdminBadgeController.cs
示例11: AbpMvcUowFilter
public AbpMvcUowFilter(
IUnitOfWorkManager unitOfWorkManager,
IAbpMvcConfiguration configuration)
{
_unitOfWorkManager = unitOfWorkManager;
_configuration = configuration;
}
开发者ID:yuzukwok,项目名称:aspnetboilerplate,代码行数:7,代码来源:AbpMvcUowFilter.cs
示例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 });
}
开发者ID:bertusmagnus,项目名称:Sutekishop,代码行数:28,代码来源:CheckoutControllerTester.cs
示例13: MenuAppService
public MenuAppService(INavigationManager navigationManager, MenuManager menuManager, IRepository<Menu> menuRepository, IUnitOfWorkManager unitOfWorkManager)
{
_menuRepository = menuRepository;
_unitOfWorkManager = unitOfWorkManager;
_menuManager = menuManager;
_navigationManager = navigationManager;
}
开发者ID:JimDeng,项目名称:identity,代码行数:7,代码来源:MenuAppService.cs
示例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;
}
开发者ID:kangjh0815,项目名称:test,代码行数:7,代码来源:StatsController.cs
示例15: ToolsController
public ToolsController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService,
ISettingsService settingsService,
ILocalizationService localizationService,
IRoleService roleService)
: base(loggingService, unitOfWorkManager, userService, settingsService, localizationService)
{
}
开发者ID:h2h,项目名称:CandyBBS,代码行数:7,代码来源:ToolsController.cs
示例16: BaseController
//private readonly MembershipUser _loggedInUser;
/// <summary>
/// Constructor
/// </summary>
/// <param name="loggingService"> </param>
/// <param name="unitOfWorkManager"> </param>
/// <param name="membershipService"></param>
/// <param name="localizationService"> </param>
/// <param name="roleService"> </param>
/// <param name="settingsService"> </param>
public BaseController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager,IUserService userService,IRoleService roleService,ISettingsService settingsService)
{
this.UnitOfWorkManager = unitOfWorkManager;
this.LoggingService = loggingService;
this.UserService = userService;
this.RoleService = roleService;
this.SettingsService = settingsService;
}
开发者ID:h2h,项目名称:CandyBBS,代码行数:18,代码来源:BaseController.cs
示例17: BaseAdminController
public BaseAdminController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IUserService userService, ISettingsService settingsService,ILocalizationService localizationService)
{
this.UserService = userService;
this.UnitOfWorkManager = unitOfWorkManager;
this.SettingsService = settingsService;
this.LoggingService = loggingService;
this.LocalizationService = localizationService;
}
开发者ID:h2h,项目名称:CandyBBS,代码行数:8,代码来源:BaseAdminController.cs
示例18: AbpApiUowFilter
public AbpApiUowFilter(
IUnitOfWorkManager unitOfWorkManager,
IAbpWebApiConfiguration configuration
)
{
_unitOfWorkManager = unitOfWorkManager;
_configuration = configuration;
}
开发者ID:ZhaoRd,项目名称:aspnetboilerplate,代码行数:8,代码来源:AbpApiUowFilter.cs
示例19: PrivateMessageController
public PrivateMessageController(ILoggingService loggingService, IUnitOfWorkManager unitOfWorkManager, IMembershipService membershipService,
ILocalizationService localizationService, IRoleService roleService, ISettingsService settingsService, IPrivateMessageService privateMessageService,
IEmailService emailService)
: base(loggingService, unitOfWorkManager, membershipService, localizationService, roleService, settingsService)
{
_privateMessageService = privateMessageService;
_emailService = emailService;
}
开发者ID:petemidge,项目名称:mvcforum,代码行数:8,代码来源:PrivateMessageController.cs
示例20: BaseDriver
public BaseDriver()
{
DefaultSetting = WebSiteConfig.DefaultSetting;
LocaleResources = WebSiteConfig.LocaleResources;
LoggingWork = DependencyResolver.Current.GetService<ILoggingWork>();
UnitOfWorkManager = DependencyResolver.Current.GetService<IUnitOfWorkManager>();
}
开发者ID:benthcode,项目名称:Annapolis.Net,代码行数:8,代码来源:BaseDriver.cs
注:本文中的IUnitOfWorkManager类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论