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
- XslTransform.cs
- FlowDocumentReaderAutomationPeer.cs
- SecurityTokenAttachmentMode.cs
- DataSourceCacheDurationConverter.cs
- CaseStatementProjectedSlot.cs
- AddInPipelineAttributes.cs
- Splitter.cs
- MetadataItemSerializer.cs
- SmiEventSink_DeferedProcessing.cs
- CalloutQueueItem.cs
- MimeReturn.cs
- BulletedList.cs
- CfgRule.cs
- HostTimeoutsElement.cs
- HiddenField.cs
- BoundColumn.cs
- TransformerInfo.cs
- HtmlTableCell.cs
- RegexParser.cs
- StringToken.cs
- TraceListeners.cs
- VectorValueSerializer.cs
- ViewPort3D.cs
- basecomparevalidator.cs
- ConsoleKeyInfo.cs
- RegexInterpreter.cs
- LayoutDump.cs
- XmlAnyElementAttribute.cs
- GenericIdentity.cs
- UIHelper.cs
- ChooseAction.cs
- CqlQuery.cs
- ControlDesigner.cs
- AbandonedMutexException.cs
- HitTestDrawingContextWalker.cs
- CategoryGridEntry.cs
- StrokeCollectionDefaultValueFactory.cs
- NTAccount.cs
- ApplicationServicesHostFactory.cs
- GiveFeedbackEvent.cs
- CompiledRegexRunnerFactory.cs
- XmlLanguage.cs
- _ListenerResponseStream.cs
- HtmlUtf8RawTextWriter.cs
- InheritanceContextHelper.cs
- BamlLocalizer.cs
- PageRouteHandler.cs
- PagesChangedEventArgs.cs
- AnnotationHighlightLayer.cs
- NullableLongSumAggregationOperator.cs
- TailCallAnalyzer.cs
- ExplicitDiscriminatorMap.cs
- XmlIlGenerator.cs
- WrappedReader.cs
- TcpWorkerProcess.cs
- ContextProperty.cs
- BrowserDefinitionCollection.cs
- Transactions.cs
- Icon.cs
- SplitterEvent.cs
- UTF8Encoding.cs
- FontInfo.cs
- SiteMapHierarchicalDataSourceView.cs
- ScrollBar.cs
- SHA384.cs
- ListParaClient.cs
- CapabilitiesAssignment.cs
- AutomationTextAttribute.cs
- VectorCollectionConverter.cs
- ServiceSecurityAuditBehavior.cs
- ISAPIApplicationHost.cs
- ProxyWebPartManager.cs
- ToolStripDropDownClosedEventArgs.cs
- MethodBody.cs
- TypeInitializationException.cs
- OdbcCommandBuilder.cs
- MediaPlayer.cs
- DetailsViewPageEventArgs.cs
- StylusShape.cs
- LogArchiveSnapshot.cs
- EdmItemError.cs
- EmptyQuery.cs
- TypeUtil.cs
- ControllableStoryboardAction.cs
- BindToObject.cs
- ClientBuildManager.cs
- TrustManager.cs
- TextOptions.cs
- Transform3DGroup.cs
- PerformanceCounterLib.cs
- DataGridViewColumnTypeEditor.cs
- ArithmeticException.cs
- Vector3D.cs
- httpstaticobjectscollection.cs
- SqlConnection.cs
- OutputBuffer.cs
- PeerInputChannel.cs
- Intellisense.cs
- ConstructorNeedsTagAttribute.cs
- AllMembershipCondition.cs