Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / System.ServiceModel.Routing / System / ServiceModel / Routing / Configuration / ClientEndpointLoader.cs / 1305376 / ClientEndpointLoader.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Routing.Configuration { using System; using System.ServiceModel; using System.ServiceModel.Description; sealed class ClientEndpointLoader : ChannelFactory { ClientEndpointLoader(string configurationName) { base.InitializeEndpoint(configurationName, null); base.Endpoint.Name = configurationName; } public static ServiceEndpoint LoadEndpoint(string configurationName) { using (ClientEndpointLoader loader = new ClientEndpointLoader(configurationName)) { return loader.Endpoint; } } protected override ServiceEndpoint CreateDescription() { ServiceEndpoint ep = new ServiceEndpoint(new ContractDescription("contract")); ep.Contract.ConfigurationName = "*"; return ep; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Effect.cs
- ThreadAttributes.cs
- SqlFunctionAttribute.cs
- CloseCollectionAsyncResult.cs
- PermissionToken.cs
- TreeViewEvent.cs
- LogLogRecord.cs
- SystemIPGlobalProperties.cs
- Graph.cs
- DependencySource.cs
- ToolTipService.cs
- DispatcherSynchronizationContext.cs
- ItemList.cs
- ScriptControl.cs
- SqlCommandBuilder.cs
- MutableAssemblyCacheEntry.cs
- SqlPersistenceWorkflowInstanceDescription.cs
- ColorAnimationUsingKeyFrames.cs
- ScheduleChanges.cs
- UTF32Encoding.cs
- VolatileResourceManager.cs
- WindowsNonControl.cs
- StorageTypeMapping.cs
- HandleRef.cs
- RijndaelManagedTransform.cs
- ObjectListComponentEditor.cs
- ObjectItemNoOpAssemblyLoader.cs
- LabelLiteral.cs
- MetadataItem.cs
- FormViewDeleteEventArgs.cs
- XmlSchemaAppInfo.cs
- Ray3DHitTestResult.cs
- ToolStripItemEventArgs.cs
- StylusPointProperties.cs
- XamlParser.cs
- ServiceNameElement.cs
- AutoScrollHelper.cs
- Panel.cs
- FileRecordSequenceCompletedAsyncResult.cs
- ToolboxBitmapAttribute.cs
- BlobPersonalizationState.cs
- ByteFacetDescriptionElement.cs
- XmlBaseWriter.cs
- AuthenticationModuleElementCollection.cs
- DownloadProgressEventArgs.cs
- RuntimeHelpers.cs
- InternalBufferOverflowException.cs
- SrgsElementList.cs
- ConfigurationException.cs
- util.cs
- LineServicesRun.cs
- TypeViewSchema.cs
- ListViewItem.cs
- HttpAsyncResult.cs
- NativeMethods.cs
- DesignerCategoryAttribute.cs
- Nullable.cs
- UserNameServiceElement.cs
- CompilerResults.cs
- SQLInt64.cs
- Converter.cs
- _BaseOverlappedAsyncResult.cs
- TraceHandlerErrorFormatter.cs
- XmlUtil.cs
- ThumbAutomationPeer.cs
- TextEditorTyping.cs
- TextModifier.cs
- SizeConverter.cs
- cookiecollection.cs
- CreateUserErrorEventArgs.cs
- CqlWriter.cs
- PolicyException.cs
- DependencySource.cs
- DataServiceConfiguration.cs
- SystemFonts.cs
- SmtpNetworkElement.cs
- ListControlDataBindingHandler.cs
- VariableAction.cs
- Soap.cs
- ZoomPercentageConverter.cs
- SqlFlattener.cs
- CheckBoxBaseAdapter.cs
- DataListItemCollection.cs
- SmtpMail.cs
- ContentControl.cs
- FormViewUpdateEventArgs.cs
- MenuItemStyle.cs
- MobileFormsAuthentication.cs
- rsa.cs
- ModelVisual3D.cs
- ImageSource.cs
- SystemParameters.cs
- ColorMatrix.cs
- RequestCachePolicy.cs
- Translator.cs
- DeclarativeCatalogPart.cs
- ACE.cs
- X509CertificateStore.cs
- Adorner.cs
- XPathPatternParser.cs