本文整理汇总了C#中IDatabaseUnitOfWorkProvider类的典型用法代码示例。如果您正苦于以下问题:C# IDatabaseUnitOfWorkProvider类的具体用法?C# IDatabaseUnitOfWorkProvider怎么用?C# IDatabaseUnitOfWorkProvider使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
IDatabaseUnitOfWorkProvider类属于命名空间,在下文中一共展示了IDatabaseUnitOfWorkProvider类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。
示例1: ServerRegistrationService
public ServerRegistrationService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory)
{
if (provider == null) throw new ArgumentNullException("provider");
if (repositoryFactory == null) throw new ArgumentNullException("repositoryFactory");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
}
开发者ID:ChrisNikkel,项目名称:Umbraco-CMS,代码行数:7,代码来源:ServerRegistrationService.cs
示例2: ContentTypeService
public ContentTypeService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, IContentService contentService, IMediaService mediaService)
{
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
_contentService = contentService;
_mediaService = mediaService;
}
开发者ID:phaniarveti,项目名称:Experiments,代码行数:7,代码来源:ContentTypeService.cs
示例3: ServiceContext
/// <summary>
/// Constructor used to instantiate the core services
/// </summary>
/// <param name="dbUnitOfWorkProvider"></param>
/// <param name="fileUnitOfWorkProvider"></param>
/// <param name="publishingStrategy"></param>
/// <param name="cache"></param>
internal ServiceContext(IDatabaseUnitOfWorkProvider dbUnitOfWorkProvider, IUnitOfWorkProvider fileUnitOfWorkProvider, BasePublishingStrategy publishingStrategy, CacheHelper cache)
{
BuildServiceCache(dbUnitOfWorkProvider, fileUnitOfWorkProvider, publishingStrategy, cache,
//this needs to be lazy because when we create the service context it's generally before the
//resolvers have been initialized!
new Lazy<RepositoryFactory>(() => RepositoryResolver.Current.Factory));
}
开发者ID:phaniarveti,项目名称:Experiments,代码行数:14,代码来源:ServiceContext.cs
示例4: GatewayProviderService
internal GatewayProviderService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory,
IShipMethodService shipMethodService, IShipRateTierService shipRateTierService,
IShipCountryService shipCountryService, IInvoiceService invoiceService, IOrderService orderService, ITaxMethodService taxMethodService,
IPaymentService paymentService, IPaymentMethodService paymentMethodService)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
Mandate.ParameterNotNull(shipMethodService, "shipMethodService");
Mandate.ParameterNotNull(shipRateTierService, "shipRateTierService");
Mandate.ParameterNotNull(shipCountryService, "shipCountryService");
Mandate.ParameterNotNull(taxMethodService, "countryTaxRateService");
Mandate.ParameterNotNull(paymentService, "paymentService");
Mandate.ParameterNotNull(paymentMethodService, "paymentMethodService");
Mandate.ParameterNotNull(invoiceService, "invoiceService");
Mandate.ParameterNotNull(orderService, "orderService");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
_shipMethodService = shipMethodService;
_shipRateTierService = shipRateTierService;
_shipCountryService = shipCountryService;
_invoiceService = invoiceService;
_orderService = orderService;
_taxMethodService = taxMethodService;
_paymentService = paymentService;
_paymentMethodService = paymentMethodService;
}
开发者ID:koswesley,项目名称:Merchello-1,代码行数:27,代码来源:GatewayProviderService.cs
示例5: EntityCollectionService
/// <summary>
/// Initializes a new instance of the <see cref="EntityCollectionService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
internal EntityCollectionService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
}
开发者ID:robgha01,项目名称:Merchello,代码行数:16,代码来源:EntityCollectionService.cs
示例6: RelationService
public RelationService(IDatabaseUnitOfWorkProvider uowProvider, RepositoryFactory repositoryFactory,
EntityService entityService)
{
_uowProvider = uowProvider;
_repositoryFactory = repositoryFactory;
_entityService = entityService;
}
开发者ID:CarlSargunar,项目名称:Umbraco-CMS,代码行数:7,代码来源:RelationService.cs
示例7: DetachedContentTypeService
/// <summary>
/// Initializes a new instance of the <see cref="DetachedContentTypeService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
public DetachedContentTypeService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
}
开发者ID:EricMunn,项目名称:Merchello,代码行数:17,代码来源:DetachedContentTypeService.cs
示例8: ShipRateTierService
internal ShipRateTierService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
}
开发者ID:BatJan,项目名称:Merchello,代码行数:8,代码来源:ShipRateTierService.cs
示例9: AnonymousCustomerService
/// <summary>
/// Initializes a new instance of the <see cref="AnonymousCustomerService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
public AnonymousCustomerService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
}
开发者ID:arknu,项目名称:Merchello,代码行数:17,代码来源:AnonymousCustomerService.cs
示例10: NotificationMessageService
public NotificationMessageService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
}
开发者ID:BatJan,项目名称:Merchello,代码行数:8,代码来源:NotificationMessageService.cs
示例11: ProductVariantService
/// <summary>
/// Initializes a new instance of the <see cref="ProductVariantService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
public ProductVariantService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
}
开发者ID:ProNotion,项目名称:Merchello,代码行数:17,代码来源:ProductVariantService.cs
示例12: ContentService
public ContentService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, IPublishingStrategy publishingStrategy)
{
if (provider == null) throw new ArgumentNullException("provider");
if (repositoryFactory == null) throw new ArgumentNullException("repositoryFactory");
if (publishingStrategy == null) throw new ArgumentNullException("publishingStrategy");
_uowProvider = provider;
_publishingStrategy = publishingStrategy;
_repositoryFactory = repositoryFactory;
}
开发者ID:CarlSargunar,项目名称:Umbraco-CMS,代码行数:9,代码来源:ContentService.cs
示例13: WarehouseCatalogService
/// <summary>
/// Initializes a new instance of the <see cref="WarehouseCatalogService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
/// <param name="productVariantService">
/// The product Variant Service.
/// </param>
internal WarehouseCatalogService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, IProductVariantService productVariantService)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
Mandate.ParameterNotNull(productVariantService, "productVariantService");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
_productVariantService = productVariantService;
}
开发者ID:robbaman,项目名称:Merchello,代码行数:22,代码来源:WarehouseCatalogService.cs
示例14: WarehouseService
/// <summary>
/// Initializes a new instance of the <see cref="WarehouseService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
/// <param name="warehouseCatalogService">
/// The warehouse Catalog Service.
/// </param>
public WarehouseService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, IWarehouseCatalogService warehouseCatalogService)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
Mandate.ParameterNotNull(warehouseCatalogService, "warehouseCatalogService");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
_warehouseCatalogService = warehouseCatalogService;
}
开发者ID:arknu,项目名称:Merchello,代码行数:22,代码来源:WarehouseService.cs
示例15: ShipmentService
/// <summary>
/// Initializes a new instance of the <see cref="ShipmentService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
/// <param name="storeSettingService">
/// The store Setting Service.
/// </param>
public ShipmentService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, IStoreSettingService storeSettingService)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
Mandate.ParameterNotNull(storeSettingService, "storeSettingService");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
_storeSettingService = storeSettingService;
}
开发者ID:ProNotion,项目名称:Merchello,代码行数:22,代码来源:ShipmentService.cs
示例16: PackagingService
public PackagingService(IContentService contentService, IContentTypeService contentTypeService, IMediaService mediaService, IDataTypeService dataTypeService, IFileService fileService, RepositoryFactory repositoryFactory, IDatabaseUnitOfWorkProvider uowProvider)
{
_contentService = contentService;
_contentTypeService = contentTypeService;
_mediaService = mediaService;
_dataTypeService = dataTypeService;
_fileService = fileService;
_repositoryFactory = repositoryFactory;
_uowProvider = uowProvider;
_importedContentTypes = new Dictionary<string, IContentType>();
}
开发者ID:phaniarveti,项目名称:Experiments,代码行数:12,代码来源:PackagingService.cs
示例17: ProductService
public ProductService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, IProductVariantService productVariantService)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
Mandate.ParameterNotNull(productVariantService, "productVariantService");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
// included the ProductVariantService so that events will trigger if variants
// need to be deleted due to a product save removing attributes
_productVariantService = productVariantService;
}
开发者ID:BatJan,项目名称:Merchello,代码行数:13,代码来源:ProductService.cs
示例18: MerchelloRepositoryService
/// <summary>
/// Initializes a new instance of the <see cref="MerchelloRepositoryService"/> class.
/// </summary>
/// <param name="provider">
/// The provider.
/// </param>
/// <param name="repositoryFactory">
/// The repository factory.
/// </param>
/// <param name="logger">
/// The logger.
/// </param>
/// <param name="eventMessagesFactory">
/// The event messages factory.
/// </param>
protected MerchelloRepositoryService(
IDatabaseUnitOfWorkProvider provider,
RepositoryFactory repositoryFactory,
ILogger logger,
IEventMessagesFactory eventMessagesFactory)
{
if (provider == null) throw new ArgumentNullException("provider");
if (repositoryFactory == null) throw new ArgumentNullException("repositoryFactory");
if (logger == null) throw new ArgumentNullException("logger");
if (eventMessagesFactory == null) throw new ArgumentNullException("eventMessagesFactory");
Logger = logger;
EventMessagesFactory = eventMessagesFactory;
RepositoryFactory = repositoryFactory;
UowProvider = provider;
}
开发者ID:drpeck,项目名称:Merchello,代码行数:30,代码来源:MerchelloRepositoryService.cs
示例19: InvoiceService
internal InvoiceService(IDatabaseUnitOfWorkProvider provider, RepositoryFactory repositoryFactory, IAppliedPaymentService appliedPaymentService, IOrderService orderService,
IStoreSettingService storeSettingService)
{
Mandate.ParameterNotNull(provider, "provider");
Mandate.ParameterNotNull(repositoryFactory, "repositoryFactory");
Mandate.ParameterNotNull(appliedPaymentService, "appliedPaymentService");
Mandate.ParameterNotNull(storeSettingService, "storeSettingService");
Mandate.ParameterNotNull(orderService, "orderService");
_uowProvider = provider;
_repositoryFactory = repositoryFactory;
_appliedPaymentService = appliedPaymentService;
_orderService = orderService;
_storeSettingService = storeSettingService;
}
开发者ID:naepalm,项目名称:Merchello,代码行数:15,代码来源:InvoiceService.cs
示例20: BuildServiceCache
/// <summary>
/// Builds the various services
/// </summary>
private void BuildServiceCache(
IDatabaseUnitOfWorkProvider dbUnitOfWorkProvider,
IUnitOfWorkProvider fileUnitOfWorkProvider,
BasePublishingStrategy publishingStrategy,
Lazy<RepositoryFactory> repositoryFactory)
{
var provider = dbUnitOfWorkProvider;
var fileProvider = fileUnitOfWorkProvider;
if (_serverRegistrationService == null)
_serverRegistrationService = new Lazy<ServerRegistrationService>(() => new ServerRegistrationService(provider, repositoryFactory.Value));
if (_userService == null)
_userService = new Lazy<IUserService>(() => new UserService(provider, repositoryFactory.Value));
if (_memberService == null)
_memberService = new Lazy<IMemberService>(() => new MemberService(provider, repositoryFactory.Value));
if (_contentService == null)
_contentService = new Lazy<IContentService>(() => new ContentService(provider, repositoryFactory.Value, publishingStrategy));
if (_mediaService == null)
_mediaService = new Lazy<IMediaService>(() => new MediaService(provider, repositoryFactory.Value));
if (_contentTypeService == null)
_contentTypeService = new Lazy<IContentTypeService>(() => new ContentTypeService(provider, repositoryFactory.Value, _contentService.Value, _mediaService.Value));
if (_dataTypeService == null)
_dataTypeService = new Lazy<IDataTypeService>(() => new DataTypeService(provider, repositoryFactory.Value));
if (_fileService == null)
_fileService = new Lazy<IFileService>(() => new FileService(fileProvider, provider, repositoryFactory.Value));
if (_localizationService == null)
_localizationService = new Lazy<ILocalizationService>(() => new LocalizationService(provider, repositoryFactory.Value));
if (_packagingService == null)
_packagingService = new Lazy<PackagingService>(() => new PackagingService(_contentService.Value, _contentTypeService.Value, _mediaService.Value, _dataTypeService.Value, _fileService.Value, _localizationService.Value, repositoryFactory.Value, provider));
if (_entityService == null)
_entityService = new Lazy<IEntityService>(() => new EntityService(provider, repositoryFactory.Value, _contentService.Value, _contentTypeService.Value, _mediaService.Value, _dataTypeService.Value));
if (_relationService == null)
_relationService = new Lazy<RelationService>(() => new RelationService(provider, repositoryFactory.Value, _entityService.Value));
if (_memberTypeService == null)
_memberTypeService = new Lazy<IMemberTypeService>(() => new MemberTypeService(provider, repositoryFactory.Value));
}
开发者ID:saciervo,项目名称:Umbraco-CMS,代码行数:51,代码来源:ServiceContext.cs
注:本文中的IDatabaseUnitOfWorkProvider类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论