Exemple #1
0
 public OverviewController(
     IApplicationEventDispatcher dispatcher,
     ICachingEventDispatcher cachingApplicationEventDispatcher)
 {
     _dispatcher = dispatcher;
     _cachingApplicationEventDispatcher = cachingApplicationEventDispatcher;
 }
Exemple #2
0
 public ReplaceImageCommandHandler(DatabaseContext context, TempFileService tempFileService, IApplicationEventDispatcher dispatcher, IDistributedCache distributedCache)
 {
     _context          = context;
     _tempFileService  = tempFileService;
     _dispatcher       = dispatcher;
     _distributedCache = distributedCache;
 }
        public MainFormController(IApplicationEventDispatcher applicationEventDispatcher)
            : base(applicationEventDispatcher)
        {
            _mainForm = new MainForm(applicationEventDispatcher);

            WireUpApplicationEventHandlers();
        }
Exemple #4
0
 public FormTemplate(FormModel model, ControlWriter controlWriter, IApplicationEventDispatcher eventDispatcher)
 {
     Model         = model;
     ControlWriter = controlWriter;
     eventDispatcher.Publish(new AngularImportDependencyRequiredEvent(
                                 moduleId: Model.Module.Id,
                                 dependency: "ReactiveFormsModule",
                                 import: "import { ReactiveFormsModule } from '@angular/forms';"));
     eventDispatcher.Publish(new AngularImportDependencyRequiredEvent(
                                 moduleId: Model.Module.Id,
                                 dependency: "FormsModule",
                                 import: "import { FormsModule } from '@angular/forms';"));
     if (Model.FormFields.Any(x => x.TypeReference.Element.Name == "Datepicker"))
     {
         eventDispatcher.Publish(new AngularImportDependencyRequiredEvent(
                                     moduleId: Model.Module.Id,
                                     dependency: "BsDatepickerModule.forRoot()",
                                     import: "import { BsDatepickerModule } from 'ngx-bootstrap/datepicker';"));
     }
     if (Model.FormFields.Any(x => x.TypeReference.Element.Name == "Select" || x.TypeReference.Element.Name == "Multi-Select"))
     {
         //eventDispatcher.Publish(new AngularImportDependencyRequiredEvent(
         //    moduleId: Model.Module.Id,
         //    dependency: "NgxSelectModule",
         //    import: "import { NgxSelectModule } from 'ngx-select-ex';"));
         //eventDispatcher.Publish(new CliInstallationRequest("ngx-select-ex", "3", "--save"));
         eventDispatcher.Publish(new AngularImportDependencyRequiredEvent(
                                     moduleId: Model.Module.Id,
                                     dependency: "MatSelectModule",
                                     import: "import { MatSelectModule } from '@angular/material/select';"));
         eventDispatcher.Publish(new CliInstallationRequest("@angular/material", "ng add @angular/material"));
     }
 }
Exemple #5
0
 public ImageProcessor(DatabaseContext context, IDetailsApi detailsApi, TempFileService tempFileService, IBackgroundJobClient backgroundJobClient, IApplicationEventDispatcher dispatcher)
 {
     _context             = context;
     _detailsApi          = detailsApi;
     _tempFileService     = tempFileService;
     _backgroundJobClient = backgroundJobClient;
     _dispatcher          = dispatcher;
 }
Exemple #6
0
 public PaginationControlTemplate(PaginationControlModel model, IApplicationEventDispatcher eventDispatcher)
 {
     Model = model;
     eventDispatcher.Publish(new AngularImportDependencyRequiredEvent(
                                 moduleId: Model.Module.Id,
                                 dependency: "PaginationModule.forRoot()",
                                 import: "import { PaginationModule } from 'ngx-bootstrap/pagination';"));
 }
Exemple #7
0
 public CoreWebStartupTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     eventDispatcher.Subscribe(ContainerRegistrationEvent.EventId, HandleServiceRegistration);
     eventDispatcher.Subscribe(ContainerRegistrationForDbContextEvent.EventId, HandleDbContextRegistration);
     eventDispatcher.Subscribe(ServiceConfigurationRequiredEvent.EventId, HandleServiceConfiguration);
     eventDispatcher.Subscribe(InitializationRequiredEvent.EventId, HandleInitialization);
 }
        public AngularNodeEdgeTypeScriptServiceProxyTemplate(ServiceModel model, IProject project, IApplicationEventDispatcher applicationEvents)
            : base(Identifier, project, model)
        {
            _applicationEvents = applicationEvents;
            var recevingProxyProject = project.Application.FindProjectWithTemplateInstance(NodeEdgeCsharpReceivingProxyTemplate.Identifier, model);

            AssemblyName = recevingProxyProject.Name;
        }
Exemple #9
0
        public FormA(
            IApplicationEventDispatcher applicationEventDispatcher)
            : base(applicationEventDispatcher)
        {
            InitializeComponent();

            WireUpApplicationEventHandlers();
        }
 protected OrchestratorBase(
     IMessages messages,
     IApplicationEventDispatcher applicationEventDispatcher,
     IMediator mediator)
 {
     _messages = messages;
     _applicationEventDispatcher = applicationEventDispatcher;
     _mediator = mediator;
 }
Exemple #11
0
        public AngularNodeEdgeTypeScriptServiceProxyTemplate(ServiceModel model, HostingConfigModel hostingConfig, IProject project, IApplicationEventDispatcher eventDispatcher)
            : base(Identifier, project, model)
        {
            _hostingConfig   = hostingConfig;
            _eventDispatcher = eventDispatcher;
            var recevingProxyProject = project.Application.FindProjectWithTemplateInstance(NodeEdgeCsharpReceivingProxyTemplate.Identifier, model);

            AssemblyName = recevingProxyProject.Name;
        }
Exemple #12
0
 public TypescriptWebApiClientServiceProxyTemplate(ServiceModel model, HostingConfigModel hostingConfig, IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, model)
 {
     _hostingConfig = hostingConfig ?? new HostingConfigModel()
     {
         UseSsl = true, SslPort = "44399"
     };
     _eventDispatcher = eventDispatcher;
 }
Exemple #13
0
 public IdentityServerOwinStartupDecorator(HostingConfigModel hostingConfig, IApplicationEventDispatcher applicationEvents, ISolutionEventDispatcher solutionEvents)
 {
     _hostingConfig = hostingConfig ?? new HostingConfigModel()
     {
         UseSsl = true, SslPort = "44399"
     };
     _applicationEvents = applicationEvents;
     _solutionEvents    = solutionEvents;
     Priority           = 10;
 }
Exemple #14
0
 public AngularImplicitAuthModuleTemplate(IProject project, HostingConfigModel hostingConfig, IApplicationEventDispatcher applicationEvents, ISolutionEventDispatcher solutionEvents)
     : base(Identifier, project, null)
 {
     _decoratorDispatcher = new DecoratorDispatcher <IAngularImplicitAuthModuleDecorator>(project.ResolveDecorators <IAngularImplicitAuthModuleDecorator>);
     _hostingConfig       = hostingConfig ?? new HostingConfigModel()
     {
         UseSsl = true, SslPort = "44399"
     };
     _applicationEvents = applicationEvents;
     _solutionEvents    = solutionEvents;
     _solutionEvents.Subscribe(SolutionEvents.ResourceAvailable_IdentityServer, HandleIdentityServerAvailable);
 }
Exemple #15
0
 public MessageDispatcher(IComponentContext componentContext, IApplicationEventDispatcher applicationEventDispatcher)
 {
     if (componentContext == null)
     {
         throw new ArgumentNullException("componentContext");
     }
     if (applicationEventDispatcher == null)
     {
         throw new ArgumentNullException("applicationEventDispatcher");
     }
     _componentContext           = componentContext;
     _applicationEventDispatcher = applicationEventDispatcher;
 }
Exemple #16
0
 public AngularConfigJsTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     _eventDispatcher = eventDispatcher;
     eventDispatcher.Subscribe(ApplicationEvents.AngularJs_ConfigurationRequired, Handle);
 }
 public SessionAuthenticationFilter(OperationContext operationContext, IHttpSessionService httpSessionService, IApplicationEventDispatcher dispatcher)
 {
     _operationContext   = operationContext;
     _httpSessionService = httpSessionService;
     _dispatcher         = dispatcher;
 }
Exemple #18
0
 public UnityConfigTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     eventDispatcher.Subscribe(Constants.ContainerRegistrationEvent.EventId, Handle);
 }
Exemple #19
0
 public RouteSessionAuthenticationFilter(OperationContext operationContext, IRouteSessionTokenExtractor routeSessionTokenExtractor, IApplicationEventDispatcher dispatcher)
 {
     _operationContext           = operationContext;
     _routeSessionTokenExtractor = routeSessionTokenExtractor;
     _dispatcher = dispatcher;
 }
 public ProgressController(IApplicationEventDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
 public AutofacConfigTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     eventDispatcher.Subscribe <ContainerRegistrationRequest>(Handle);
 }
Exemple #22
0
 public AngularAppTemplate(IProject project, IApplicationEventDispatcher applicationEventDispatcher)
     : base(Identifier, project, null)
 {
     _applicationEventDispatcher = applicationEventDispatcher;
     applicationEventDispatcher.Subscribe(ApplicationEvents.AngularJs_ModuleRegistered, Handle);
 }
Exemple #23
0
 public WebApiEventConsumerServiceTemplate(IProject project, SubscribingModel model, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, model)
 {
     _eventDispatcher = eventDispatcher;
 }
Exemple #24
0
 public WebApiWebConfigFileTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(IDENTIFIER, project, null)
 {
     eventDispatcher.Subscribe <AppSettingRegistrationRequest>(HandleAppSetting);
     eventDispatcher.Subscribe <ConnectionStringRegistrationRequest>(HandleConnectionString);
 }
 public LogoutCommandHandler(IOperationContext operationContext, IApplicationEventDispatcher dispatcher, ILogger <LogoutCommandHandler> logger)
 {
     _operationContext = operationContext;
     _dispatcher       = dispatcher;
     _logger           = logger;
 }
        protected ApplicationEventHandlingBase(IApplicationEventDispatcher applicationEventDispatcher)
        {
            if (applicationEventDispatcher == null) throw new ArgumentNullException("applicationEventDispatcher");

            _applicationEventDispatcher = applicationEventDispatcher;
        }
Exemple #27
0
 public EpisodeController(IApplicationEventDispatcher dispatcher)
 {
     _dispatcher = dispatcher;
 }
Exemple #28
0
 public FilmController(IApplicationEventDispatcher eventDispatcher)
 {
     _eventDispatcher = eventDispatcher;
 }
 public MainProcess(IApplicationEventDispatcher applicationEventDispatcher)
     : base(applicationEventDispatcher)
 {
     _mainFormController = new MainFormController(applicationEventDispatcher);
 }
Exemple #30
0
 public UserContextProviderTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     _eventDispatcher = eventDispatcher;
 }
Exemple #31
0
 public AspNetIdentityModelTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     _eventDispatcher = eventDispatcher;
 }
 public MainForm(IApplicationEventDispatcher applicationEventDispatcher)
     : base(applicationEventDispatcher)
 {
     InitializeComponent();
 }
Exemple #33
0
 public HttpExceptionHandlerTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     _eventDispatcher = eventDispatcher;
 }
Exemple #34
0
 public DbContextTemplate(IEnumerable <Class> models, IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, models)
 {
     _eventDispatcher = eventDispatcher;
 }
Exemple #35
0
 public AppSettingsTemplate(IProject project, IApplicationEventDispatcher eventDispatcher)
     : base(Identifier, project, null)
 {
     eventDispatcher.Subscribe(ApplicationEvents.Config_ConnectionString, HandleConnectionString);
 }