public static void SetServiceDescription(Endpoint element, ServiceDescription newServiceDescription) { DslModeling::DomainRoleInfo.SetLinkedElement(element, EndpointDomainRoleId, newServiceDescription); }
public static ServiceDescription GetServiceDescription(Endpoint element) { return DslModeling::DomainRoleInfo.GetLinkedElement(element, EndpointDomainRoleId) as ServiceDescription; }
/// <summary> /// Constructor /// Creates a ServiceDescriptionHasEndpoints link in the same Partition as the given ServiceDescription /// </summary> /// <param name="source">ServiceDescription to use as the source of the relationship.</param> /// <param name="target">Endpoint to use as the target of the relationship.</param> public ServiceDescriptionHasEndpoints(ServiceDescription source, Endpoint target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(ServiceDescriptionHasEndpoints.ServiceDescriptionDomainRoleId, source), new DslModeling::RoleAssignment(ServiceDescriptionHasEndpoints.EndpointDomainRoleId, target)}, null) { }
public static void SetEndpoint(Proxy element, Endpoint newEndpoint) { DslModeling::DomainRoleInfo.SetLinkedElement(element, ProxyDomainRoleId, newEndpoint); }
public static DslModeling::LinkedElementCollection<Proxy> GetProxies(Endpoint element) { return GetRoleCollection<DslModeling::LinkedElementCollection<Proxy>, Proxy>(element, EndpointDomainRoleId); }
/// <summary> /// Constructor /// Creates a ProxyReferencesEndpoint link in the same Partition as the given Proxy /// </summary> /// <param name="source">Proxy to use as the source of the relationship.</param> /// <param name="target">Endpoint to use as the target of the relationship.</param> public ProxyReferencesEndpoint(Proxy source, Endpoint target) : base((source != null ? source.Partition : null), new DslModeling::RoleAssignment[]{new DslModeling::RoleAssignment(ProxyReferencesEndpoint.ProxyDomainRoleId, source), new DslModeling::RoleAssignment(ProxyReferencesEndpoint.EndpointDomainRoleId, target)}, null) { }