Esempio n. 1
0
 public void AddEndpointBuilder(CompositionEndpointBuilder endpointBuilder)
 {
     _endpointBuilders.Add(endpointBuilder);
 }
Esempio n. 2
0
        private static void AppendToDataSource(ICollection <EndpointDataSource> dataSources, CompositionEndpointBuilder builder)
        {
            var dataSource = dataSources.OfType <CompositionEndpointDataSource>().FirstOrDefault();

            if (dataSource == null)
            {
                dataSource = new CompositionEndpointDataSource();
                dataSources.Add(dataSource);
            }

            dataSource.AddEndpointBuilder(builder);
        }