1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation. All rights reserved.
3 //----------------------------------------------------------------
5 namespace System.ServiceModel.Activities.Presentation
8 using System.ComponentModel;
9 using System.ServiceModel;
10 using System.Activities.Presentation.Metadata;
11 using System.Activities.Presentation.PropertyEditing;
13 sealed class EndpointDesigner
15 internal static void RegisterMetadata(AttributeTableBuilder builder)
17 Type endpointType = typeof(Endpoint);
19 var browsableAttribute = new BrowsableAttribute(false);
20 builder.AddCustomAttributes(endpointType, endpointType.GetProperty("BehaviorConfigurationName"), browsableAttribute);
21 builder.AddCustomAttributes(endpointType, endpointType.GetProperty("Headers"), browsableAttribute);
22 builder.AddCustomAttributes(endpointType, endpointType.GetProperty("Identity"), browsableAttribute);
23 builder.AddCustomAttributes(endpointType, endpointType.GetProperty("Name"), browsableAttribute);
24 builder.AddCustomAttributes(endpointType, endpointType.GetProperty("ListenUri"), browsableAttribute);
25 builder.AddCustomAttributes(endpointType, endpointType.GetProperty("ServiceContractName"), browsableAttribute);
27 builder.AddCustomAttributes(endpointType, endpointType.GetProperty("Binding"),
28 PropertyValueEditor.CreateEditorAttribute(typeof(BindingPropertyValueEditor)));