Update Reference Sources to .NET Framework 4.6.1
[mono.git] / mcs / class / referencesource / System.Activities.Core.Presentation / System / ServiceModel / Activities / Presentation / EndpointDesigner.cs
1 //----------------------------------------------------------------
2 // Copyright (c) Microsoft Corporation.  All rights reserved.
3 //----------------------------------------------------------------
4
5 namespace System.ServiceModel.Activities.Presentation
6 {
7     using System;
8     using System.ComponentModel;
9     using System.ServiceModel;
10     using System.Activities.Presentation.Metadata;
11     using System.Activities.Presentation.PropertyEditing;
12
13     sealed class EndpointDesigner
14     {
15         internal static void RegisterMetadata(AttributeTableBuilder builder)
16         {
17             Type endpointType = typeof(Endpoint);
18
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);
26
27             builder.AddCustomAttributes(endpointType, endpointType.GetProperty("Binding"),
28                 PropertyValueEditor.CreateEditorAttribute(typeof(BindingPropertyValueEditor)));
29         }
30
31     }
32 }