void Awake() { if (instance != null) { Debug.LogError("More than one InfrastructureManager in scene !"); return; } instance = this; }
partial void Initialize() { InfrastructureManager = new InfrastructureManager(this, ServiceProvider, PatternManager); if (currentApplication == null) { currentApplication = this; // Force initialization of NserviceBusVersion from file InitializeExtensionDependentData(); CustomSolutionBuilder.Initialize(ServiceProvider); PatternManager.ElementDeleting += (s, e) => { // Delete all related artifacts links var element = e.Value.As <IProductElement>(); element.RemoveArtifactLinks(UriService, Solution); // If it's a Component Link, remove all links into Endpoints (they're not artifact links) var componentLink = element.As <IAbstractComponentLink>(); if (componentLink != null && componentLink.ComponentReference.Value != null) { var endpoint = element.Parent.Parent.As <IAbstractEndpoint>(); componentLink.ComponentReference.Value.RemoveLinks(endpoint); } }; } // Set/Get static values currentApplication = this; NServiceBusVersion = nserviceBusVersion; ServiceControlEndpointPluginVersion = serviceControlEndpointPluginVersion; ExtensionPath = extensionPath; CheckLicense(); SetNuGetPackagesVersion(); SetOptionSettings(); SetPropagationHandlers(); SetDomainSpecifiLogging(); SetRemoveEmptyAddMenus(); SetF5Experience(); SetupAddNuGetFilesHandler(); }
partial void Initialize() { InfrastructureManager = new InfrastructureManager(this, ServiceProvider, PatternManager); if (currentApplication == null) { currentApplication = this; // Force initialization of NserviceBusVersion from file InitializeExtensionDependentData(); CustomSolutionBuilder.Initialize(ServiceProvider); PatternManager.ElementDeleting += (s, e) => { // Delete all related artifacts links var element = e.Value.As<IProductElement>(); element.RemoveArtifactLinks(UriService, Solution); // If it's a Component Link, remove all links into Endpoints (they're not artifact links) var componentLink = element.As<IAbstractComponentLink>(); if (componentLink != null && componentLink.ComponentReference.Value != null) { var endpoint = element.Parent.Parent.As<IAbstractEndpoint>(); componentLink.ComponentReference.Value.RemoveLinks(endpoint); } }; } // Set/Get static values currentApplication = this; NServiceBusVersion = nserviceBusVersion; ServiceControlEndpointPluginVersion = serviceControlEndpointPluginVersion; ExtensionPath = extensionPath; CheckLicense(); SetNuGetPackagesVersion(); SetOptionSettings(); SetPropagationHandlers(); SetDomainSpecifiLogging(); SetRemoveEmptyAddMenus(); SetF5Experience(); SetupAddNuGetFilesHandler(); }
public void Setup() { _infrastructureManager = new InfrastructureManager(); }