/// <summary> /// Initializes a new instance of the <see cref="BoundedContextConfiguration"/> class. /// </summary> /// <param name="application"><see cref="Application"/> this belongs to.</param> /// <param name="boundedContext"><see cref="Microservice"/> running.</param> /// <param name="boundedContextName"><see cref="MicroserviceName" /> of bounded context.</param> /// <param name="core">The <see cref="CoreConfiguration"/>.</param> /// <param name="interaction">The <see cref="InteractionLayerConfiguration"/>.</param> /// <param name="resources">Resource configurations for different types.</param> public BoundedContextConfiguration( Application application, Microservice boundedContext, MicroserviceName boundedContextName, CoreConfiguration core, IEnumerable <InteractionLayerConfiguration> interaction, IDictionary <ResourceType, ResourceTypeImplementationConfiguration> resources) { Application = application; BoundedContext = boundedContext; BoundedContextName = boundedContextName; Core = core; Interaction = interaction; Resources = resources; }
private void InitializeUx() { MicroserviceList.Items.Clear(); _manifests = _configM.GetAll(); var services = (from m in _manifests.list let path = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location) select new Microservice { icon = path + @"\images\MicroserviceIcon.png", name = m.name }).ToList(); foreach (var service in services) { MicroserviceList.Items.Add(service); } MicroserviceList.SelectedIndex = 0; MicroserviceName.Focus(); }
private void AddButton_OnClick(object sender, RoutedEventArgs e) { MicroserviceName.Text = string.Empty; MicroserviceDesc.Text = string.Empty; MicroserviceCacheTTL.Text = string.Empty; MicroserviceVersion.Text = string.Empty; AttributeEditor.Items.Clear(); var attributes = new List <Attribute>(); var emptyAttr = new Attribute { name = "<New>" }; attributes.Add(emptyAttr); foreach (var a in attributes) { AttributeEditor.Items.Add(a); } MicroserviceName.Focus(); IsNew = true; }