Exemplo n.º 1
0
 /// <summary>
 /// Initializes new instance of <see cref="DefaultLanguageIterator"/>.
 /// </summary>
 /// <param name="userConnection">User connection.</param>
 /// <param name="schemaName">Schema, contains Contact.</param>
 public DefaultLanguageIterator(UserConnection userConnection, string schemaName)
     : base(userConnection)
 {
     LanguageRules = new ILanguageRule[] {
         new DefaultContactLanguageRule(UserConnection, schemaName),
         new DefaultLanguageRule(UserConnection)
     };
 }
 /// <summary>
 /// Initializes new instance of <see cref="AccountLanguageIterator"/>.
 /// </summary>
 /// <param name="userConnection">User connection.</param>
 public AccountLanguageIterator(UserConnection userConnection)
     : base(userConnection)
 {
     LanguageRules = new ILanguageRule[] {
         new PrimeContactInAccountLanguageRule(UserConnection),
         new DefaultLanguageRule(UserConnection),
     };
 }
Exemplo n.º 3
0
 /// <summary>
 /// Initializes new instance of <see cref="ContactLanguageIterator"/>.
 /// </summary>
 /// <param name="userConnection">User connection.</param>
 public ContactLanguageIterator(UserConnection userConnection)
     : base(userConnection)
 {
     LanguageRules = new ILanguageRule[] {
         new LanguageInContactLanguageRule(UserConnection),
         new DefaultLanguageRule(UserConnection),
     };
 }
 /// <summary>
 /// Initializes new instance of <see cref="OpportunityLanguageIterator"/>.
 /// </summary>
 /// <param name="userConnection">User connection.</param>
 public OpportunityLanguageIterator(UserConnection userConnection)
     : base(userConnection)
 {
     LanguageRules = new ILanguageRule[] {
         new DefaultContactLanguageRule(UserConnection, "Opportunity"),
         new ContactInAccountOpportunityLanguageRule(UserConnection),
         new DefaultLanguageRule(UserConnection),
     };
 }
Exemplo n.º 5
0
 /// <summary>
 /// Initializes new instance of <see cref="CaseLanguageIterator"/>.
 /// </summary>
 /// <param name="userConnection">User connection.</param>
 public CaseLanguageIterator(UserConnection userConnection)
     : base(userConnection)
 {
     LanguageRules = new ILanguageRule[] {
         new DefaultContactLanguageRule(UserConnection, "Case"),
         new MailBoxLanguageRule(UserConnection),
         new DefSupportBoxLanguageRule(UserConnection),
         new DefaultLanguageRule(UserConnection),
     };
 }
 /// <summary>
 /// Initializes new instance of <see cref="EmailTemplateUserTaskLanguageIterator"/>.
 /// </summary>
 /// <param name="userConnection">User connection.</param>
 /// <param name="cultures">User culture list.</param>
 /// <param name="defaultLanguageRule">Default culture rule.</param>
 public RegistrationLanguageIterator(UserConnection userConnection, IEnumerable <string> cultures,
                                     ILanguageRule defaultLanguageRule) : this(userConnection, cultures)
 {
     _defaultLanguageRule = defaultLanguageRule;
 }