Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ComIntegration / ProxyBuilder.cs / 1 / ProxyBuilder.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.ComIntegration { using System; using System.Runtime.InteropServices; using Microsoft.Win32; using System.Reflection; using System.Collections.Generic; using System.Threading; internal static class ProxyBuilder { internal static void Build (DictionarypropertyTable, ref Guid riid, IntPtr ppv) { if (IntPtr.Zero == ppv) throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgumentNull("ppv"); string temp; IProxyCreator proxyCreator = null; if (propertyTable.TryGetValue(MonikerHelper.MonikerAttribute.Wsdl, out temp)) { proxyCreator = new WsdlServiceChannelBuilder(propertyTable); } else if (propertyTable.TryGetValue(MonikerHelper.MonikerAttribute.MexAddress, out temp)) { proxyCreator = new MexServiceChannelBuilder(propertyTable); } else { proxyCreator = new TypedServiceChannelBuilder(propertyTable); } IProxyManager proxyManager = new ProxyManager(proxyCreator); Marshal.WriteIntPtr(ppv, OuterProxyWrapper.CreateOuterProxyInstance(proxyManager, ref riid)); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- PublishLicense.cs
- DebugInfoGenerator.cs
- QueryOutputWriterV1.cs
- ContainerSelectorGlyph.cs
- GeneralTransform.cs
- RelationshipDetailsRow.cs
- Semaphore.cs
- RemoveStoryboard.cs
- EntitySqlQueryBuilder.cs
- DashStyles.cs
- ForeignKeyFactory.cs
- InternalBase.cs
- HtmlElementEventArgs.cs
- TableLayoutStyle.cs
- RSAOAEPKeyExchangeDeformatter.cs
- SettingsSavedEventArgs.cs
- WebFaultClientMessageInspector.cs
- ManipulationLogic.cs
- DelegatingConfigHost.cs
- SessionStateModule.cs
- DropSource.cs
- safelinkcollection.cs
- XmlEnumAttribute.cs
- X509ClientCertificateAuthentication.cs
- TrayIconDesigner.cs
- XamlSerializationHelper.cs
- RepeaterItem.cs
- ServiceModelEnumValidator.cs
- BindingOperations.cs
- SchemaInfo.cs
- SingleConverter.cs
- DatagridviewDisplayedBandsData.cs
- MessageQueuePermissionAttribute.cs
- RestClientProxyHandler.cs
- XhtmlStyleClass.cs
- SHA384.cs
- HandlerMappingMemo.cs
- BaseAsyncResult.cs
- StoreItemCollection.Loader.cs
- regiisutil.cs
- DirectoryObjectSecurity.cs
- DataColumnPropertyDescriptor.cs
- Accessible.cs
- PasswordBox.cs
- LinqDataSourceSelectEventArgs.cs
- MetadataCache.cs
- PictureBox.cs
- WebScriptMetadataFormatter.cs
- TypeNameConverter.cs
- RelationshipWrapper.cs
- DefaultBinder.cs
- HierarchicalDataTemplate.cs
- LocatorPartList.cs
- CollectionCodeDomSerializer.cs
- HelloMessage11.cs
- AddInPipelineAttributes.cs
- SamlAuthenticationClaimResource.cs
- LazyTextWriterCreator.cs
- TreeView.cs
- ColumnMap.cs
- CryptoKeySecurity.cs
- MaterializeFromAtom.cs
- Slider.cs
- EntityFunctions.cs
- SeparatorAutomationPeer.cs
- PowerStatus.cs
- RadioButton.cs
- MenuItemCollectionEditorDialog.cs
- RowToParametersTransformer.cs
- CodeTryCatchFinallyStatement.cs
- XpsImage.cs
- EntityDataSourceMemberPath.cs
- ImmutableObjectAttribute.cs
- _AuthenticationState.cs
- HijriCalendar.cs
- ConfigurationValidatorAttribute.cs
- KeyInterop.cs
- PackageFilter.cs
- EntityDataSourceContainerNameConverter.cs
- TableLayoutPanelBehavior.cs
- DependencyPropertyConverter.cs
- GridViewUpdatedEventArgs.cs
- _LocalDataStoreMgr.cs
- XsltContext.cs
- MonitorWrapper.cs
- TypeDescriptionProviderAttribute.cs
- ArgumentValue.cs
- DummyDataSource.cs
- Section.cs
- ClaimComparer.cs
- WebPartManager.cs
- SafeHGlobalHandleCritical.cs
- EntityDataSourceColumn.cs
- WindowsMenu.cs
- SystemFonts.cs
- SmtpFailedRecipientsException.cs
- ConfigurationSectionGroup.cs
- FixedPosition.cs
- PromptEventArgs.cs
- PenContexts.cs