public DashboardDefinitionsService(
     ApplicationFactServiceBehavior behavior,
     CrudServiceDependencies deps) : base(deps)
 {
     _behavior  = behavior;
     _localizer = deps.Localizer;
 }
Пример #2
0
 public ExchangeRatesService(
     ApplicationFactServiceBehavior behavior,
     CrudServiceDependencies deps) : base(deps)
 {
     _behavior  = behavior;
     _localizer = deps.Localizer;
 }
        public async Task <EmailCommandPreview> EmailCommandPreviewEntities(NotificationTemplate template, PrintEntitiesArguments <int> args, CancellationToken cancellation)
        {
            await Initialize(cancellation);

            if (template == null)
            {
                throw new ServiceException($"Email template was not supplied.");
            }

            await FillNavigationProperties(template, cancellation);

            int index = 0;

            var preloadedQuery = BaseUtil.EntitiesPreloadedQuery(args: args, collection: template.Collection, defId: template.DefinitionId);
            var localVars      = BaseUtil.EntitiesLocalVariables(args: args, collection: template.Collection, defId: template.DefinitionId);

            var preview = await _behavior.UnversionedEmailCommandPreview(
                template : template,
                preloadedQuery : preloadedQuery,
                localVariables : localVars,
                fromIndex : index,
                toIndex : index,
                cultureString : args.Culture,
                cancellation : cancellation);

            // Add the versions
            preview.Version = ApplicationFactServiceBehavior.GetEmailCommandPreviewVersion(preview);
            if (preview.Emails.Count > 0)
            {
                var email = preview.Emails[0];
                email.Version = ApplicationFactServiceBehavior.GetEmailPreviewVersion(email);
            }

            return(preview);
        }
Пример #4
0
 public LookupsGenericService(ApplicationFactServiceBehavior behavior,
                              FactServiceDependencies deps,
                              IPermissionsCache permissionsCache) : base(deps)
 {
     _behavior         = behavior;
     _permissionsCache = permissionsCache;
 }
Пример #5
0
 public PrintingTemplatesService(
     ApplicationFactServiceBehavior behavior,
     CrudServiceDependencies deps) : base(deps)
 {
     _behavior        = behavior;
     _templateService = deps.TemplateService;
     _localizer       = deps.Localizer;
 }
Пример #6
0
 public MessageCommandsService(ApplicationFactServiceBehavior behavior, IPermissionsCache permissionsCache, FactServiceDependencies deps) : base(deps)
 {
     _behavior         = behavior;
     _permissionsCache = permissionsCache;
 }
Пример #7
0
 public EmailsService(ApplicationFactServiceBehavior behavior, FactServiceDependencies deps, IBlobService blobService) : base(deps)
 {
     _behavior    = behavior;
     _blobService = blobService;
 }
Пример #8
0
 public AccountTypesService(ApplicationFactServiceBehavior behavior, CrudServiceDependencies deps) : base(deps)
 {
     _behavior = behavior;
 }
Пример #9
0
 public OutboxService(ApplicationFactServiceBehavior behavior, FactServiceDependencies deps) : base(deps)
 {
     _behavior = behavior;
 }
 public DocumentDefinitionsService(ApplicationFactServiceBehavior behavior, CrudServiceDependencies deps, IStringLocalizer <Strings> localizer) : base(deps)
 {
     _behavior  = behavior;
     _localizer = localizer;
 }
Пример #11
0
 public DetailsEntriesService(ApplicationFactServiceBehavior behavior, FactServiceDependencies deps) : base(deps)
 {
     _behavior = behavior;
 }
Пример #12
0
 public CentersService(ApplicationFactServiceBehavior behavior, CrudServiceDependencies deps) : base(deps)
 {
     _behavior = behavior;
 }
Пример #13
0
 public IfrsConceptsService(ApplicationFactServiceBehavior behavior, FactServiceDependencies deps) : base(deps)
 {
     _behavior = behavior;
 }
Пример #14
0
 public InboxService(ApplicationFactServiceBehavior behavior, FactServiceDependencies deps, IClientProxy client) : base(deps)
 {
     _behavior = behavior;
     _client   = client;
 }