public void Init( EPServicesContext servicesContext, EPEventServiceSPI runtimeSPI, EPDeploymentServiceSPI adminSPI, EPStageServiceSPI stageServiceSPI) { }
private static void CheckAlreadyDefinedByStage <TK, TE>( EPStageServiceSPI spi, EPObjectType objectType, Func <StageSpecificServices, PathRegistry <TK, TE> > registryFunc, TK objectKey, string moduleName, int rolloutItemNumber) where TK : class { foreach (var entry in spi.Stages) { var registry = registryFunc.Invoke(entry.Value.StageSpecificServices); if (registry.GetWithModule(objectKey, moduleName) != null) { throw new EPDeployPreconditionException( objectType.GetPrettyName() + " by name '" + objectKey + "' is already defined by stage '" + entry.Key + "'", rolloutItemNumber); } } }
public EPRuntimeEnv( EPServicesContext services, EPEventServiceSPI eventService, EPDeploymentServiceSPI deploymentService, EPEventTypeService eventTypeService, EPContextPartitionService contextPartitionService, EPVariableService variableService, EPMetricsService metricsService, EPFireAndForgetService fireAndForgetService, EPStageServiceSPI stageService) { Services = services; Runtime = eventService; DeploymentService = deploymentService; EventTypeService = eventTypeService; ContextPartitionService = contextPartitionService; VariableService = variableService; MetricsService = metricsService; FireAndForgetService = fireAndForgetService; StageService = stageService; }