示例#1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="UserRepositoryV4"/> class.
        /// </summary>
        /// <param name="crmService">The CRM service.</param>
        /// <param name="contactToUserConverter">The contact to user converter.</param>
        /// <param name="cacheService">The cache service.</param>
        public UserRepositoryV4(ICrmServiceV4 crmService, IContactToUserConverterV4 contactToUserConverter, ICacheService cacheService)
            : base(cacheService)
        {
            Assert.ArgumentNotNull(crmService, "crmService");
            Assert.ArgumentNotNull(contactToUserConverter, "contactToUserConverter");

            this.CrmService             = crmService;
            this.ContactToUserConverter = contactToUserConverter;
        }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="ProfileRepositoryV4"/> class.
        /// </summary>
        /// <param name="metadataService">The CRM metadata service.</param>
        /// <param name="crmService">The CRM service.</param>
        /// <param name="userRepository">The user repository.</param>
        /// <param name="cacheService">The cache service.</param>
        public ProfileRepositoryV4(IMetadataServiceV4 metadataService, ICrmServiceV4 crmService, UserRepositoryBase userRepository, ICacheService cacheService)
            : base(userRepository, cacheService)
        {
            Assert.ArgumentNotNull(metadataService, "metadataService");
            Assert.ArgumentNotNull(crmService, "crmService");

            this.CrmMetadataService = metadataService;
            this.CrmService         = crmService;
        }
示例#3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="RoleRepositoryV4"/> class.
        /// </summary>
        /// <param name="crmService">The CRM service.</param>
        /// <param name="marketingListToRoleConverter">The marketing list to role converter.</param>
        /// <param name="contactToUserConverter">The contact to user converter.</param>
        /// <param name="userRepository">The user repository.</param>
        /// <param name="cacheService">The cache service.</param>
        public RoleRepositoryV4(ICrmServiceV4 crmService, IMarketingListToRoleConverterV4 marketingListToRoleConverter, IContactToUserConverterV4 contactToUserConverter, UserRepositoryBase userRepository, ICacheService cacheService)
            : base(userRepository, cacheService)
        {
            Assert.ArgumentNotNull(crmService, "crmService");
            Assert.ArgumentNotNull(marketingListToRoleConverter, "marketingListToRoleConverter");

            this.CrmService = crmService;
            this.MarketingListToRoleConverter = marketingListToRoleConverter;
            this.ContactToUserConverter       = contactToUserConverter;
        }
 /// <summary>
 /// Initializes a new instance of the <see cref="EntityRepository"/> class.
 /// </summary>
 /// <param name="metadataService">The metadata service.</param>
 /// <param name="crmService">The CRM service.</param>
 /// <param name="cacheService">The cache service.</param>
 public EntityRepository(IMetadataServiceV4 metadataService, ICrmServiceV4 crmService, ICacheService cacheService)
     : base(cacheService)
 {
     this.crmMetadataService = metadataService;
     this.crmService         = crmService;
 }