public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory.Bind <IContentKit, MLangContentKit>();
     ClassFactory.Bind <IContentStore, EmailTplContentStore>("EmailTemplate");
     ClassFactory.Bind <ILanguageIterator, DefaultLanguageIterator>("Default");
 }
        private void RegisterReportGenerationCompletionSender(AppConnection appConnection)
        {
            var reminderSender     = new ReportGenerationCompletionReminderSender(appConnection);
            var notificationSender = new ReportGenerationCompletionNotificationSender();

            notificationSender.SetSuccessor(reminderSender);
            ClassFactory.Bind <ReportGenerationCompletionSender>(() => notificationSender);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// Binds packages <see cref="ClassFactory"/> items.
 /// </summary>
 /// <param name="context">Instance of <see cref="AppEventContext"/>.</param>
 public void OnAppStart(AppEventContext context)
 {
     ClassFactory.Bind <ICampaignExecutionLogger, CampaignExecutionLogger>("userConnection");
     ClassFactory.Bind <ICampaignJobDispatcher, CampaignJobDispatcher>("userConnection");
     ClassFactory.Bind <ICampaignTimeScheduler, CampaignTimeScheduler>("userConnection");
     ClassFactory.Bind <ICampaignFragmentSynchronizer, CampaignFragmentSynchronizer>();
     ClassFactory.Bind <ICampaignSignalEntityHandler, CampaignSignalEntityHandler>("userConnection");
 }
Ejemplo n.º 4
0
 public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory.Bind <IReportProvider, CachingDevExpressReportProvider>();
     ClassFactory.Bind <INodeIdGenerator, NodeIdGenerator>();
     ClassFactory.Bind <IReportTypeCache, ReportTypeCache>();
     ClassFactory.Bind <IDevExpressReportLocalizationReader, DevExpressConfReportLocalizationReader>();
 }
Ejemplo n.º 5
0
 protected virtual void InitializeDeduplicationDependencyInjectionModel()
 {
     ClassFactory.Bind <ICustomConfigurationScriptBuilder, DeduplicationConfigurationScriptBuilder>(
         DeduplicationConfigurationScriptBuilderTag);
     ClassFactory.Bind <IDeduplicationManager, DeduplicationManager>();
     ClassFactory.Bind <IDuplicatesRuleChecker, DuplicatesRuleManager>(DuplicatesRuleCheckerTag);
     ClassFactory.Bind <IDeduplicationSearchQueryBuilder, DeduplicationSearchQueryBuilder>();
     ClassFactory.Bind <IRestClient, RestClient>(BulkDeduplicationRestClientTag);
     ClassFactory.Bind <IRestClient, RestClient>(BulkDeduplicationTaskRestClientTag);
     ClassFactory.Bind <IBulkDeduplicationTaskStarter, BulkDeduplicationManager>();
 }
Ejemplo n.º 6
0
        public void OnAppStart(AppEventContext context)
        {
#if !NETSTANDARD2_0 // TODO CRM-42546
            ClassFactory.Bind <ISyncStrategy, DateBasedSyncStrategy>("DateBasedSyncStrategy");
            ClassFactory.Bind <ISyncStrategy, FlagBasedSinceDateSyncStrategy>("FlagBasedSinceDateSyncStrategy");
            ClassFactory.Bind <ISyncStrategy, UidBasedSyncStrategy>("UidBasedSyncStrategy");
            ClassFactory.Bind <ISyncStrategy, UidBasedSinceSyncStrategy>("UidBasedSinceSyncStrategy");
            ClassFactory.Bind <ISyncStrategy, SentSinceAndDraftsSyncStrategy>("SentSinceAndDraftsSyncStrategy");
#endif
            ClassFactory.Bind <IEmailProvider, EmailProvider>();
        }
Ejemplo n.º 7
0
 protected virtual void NotificationDIModel()
 {
     ClassFactory.Bind <INotificationSender, NotificationSender>();
     ClassFactory.Bind <INotificationCounterFactory, NotificationCounterFactory>();
     ClassFactory.Bind <INotificationCountHandler, NotificationCountHandler>();
     ClassFactory.Bind <IRemindingRepository, RemindingRepository>();
     ClassFactory.Bind <INotificationHandler, PushNotificationSender>();
     ClassFactory.Bind <INotificationHandler, WebSocketNotificationSender>();
     ClassFactory.Bind <INotificationCounter, RemindingCounter>(NotificationGroupConst.All);
     ClassFactory.Bind <INotificationCounter, ESNNotificationCounter>(NotificationGroupConst.All);
     ClassFactory.Bind <INotificationCounter, VisaNotificationCounter>(NotificationGroupConst.All);
 }
Ejemplo n.º 8
0
        private void RegisterFileConverter(UserConnection userConnection)
        {
            var fileConverterServiceUrl = Core.Configuration.SysSettings.GetValue(userConnection, FileConverterSysSettingCode, string.Empty);

            if (string.IsNullOrEmpty(fileConverterServiceUrl))
            {
                return;
            }
            var fileConverterClientSettings = new FileConverterHttpConnectionSettings {
                BaseUrl = new Uri(fileConverterServiceUrl),
                Timeout = TimeSpan.FromSeconds(30)
            };
            var fileConverterClient = new FileConverterHttpClient(fileConverterClientSettings);

            ClassFactory.Bind <IFileConverterClient>(() => fileConverterClient);
        }
Ejemplo n.º 9
0
 public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory.Bind <ISupportMailBoxRepository, SupportMailBoxRepository>("MailBoxRepository");
 }
 public override void OnAppStart(AppEventContext context)
 {
     ClassFactory.Bind <IForecastCellRepository, EntityInForecastCellRepository>();
 }
Ejemplo n.º 11
0
 public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory
     .Bind <ISupMailBoxLangProvider, SupMailBoxLangProvider>("SupMailBoxLang");
 }
 public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory.Bind <ILanguageIterator, EmailTemplateUserTaskLanguageIterator>("EmailTemplateUserTask");
 }
Ejemplo n.º 13
0
 public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory.Bind <ILanguageIterator, OpportunityLanguageIterator>("Opportunity");
 }
Ejemplo n.º 14
0
 public void OnAppStart(AppEventContext context)
 {
     ClassFactory.Bind <ISectionStructureBuilder, PortalSectionStructureBuilder>(UserType.SSP.ToString());
     ClassFactory.Bind <ISectionStructureBuilder, GeneralSectionStructureBuilder>(UserType.General.ToString());
 }
 public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory.Bind <ILanguageIterator, CaseLanguageIterator>("Case");
 }
Ejemplo n.º 16
0
 protected virtual void InitializeDIModel()
 {
     ClassFactory.Bind <IESQueryBuilder, ESQueryBuilder>();
     ClassFactory.Bind <ISearchProvider, ESSearchProvider>();
 }
 public override void OnAppStart(AppEventContext context)
 {
     base.OnAppStart(context);
     ClassFactory.Bind <IWordReportDesignWorker>(() => new WordReportingDesignWorker(UserConnection));
 }