Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / ComIntegration / MonikerProxyAttribute.cs / 1 / MonikerProxyAttribute.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.ComIntegration { using System.Runtime.Remoting; using System.Runtime.Remoting.Proxies; using System.Runtime.InteropServices; [AttributeUsage(AttributeTargets.Class)] internal sealed class MonikerProxyAttribute : ProxyAttribute, ICustomFactory { public override MarshalByRefObject CreateInstance(Type serverType) { if (serverType != typeof (ServiceMoniker)) { DiagnosticUtility.DebugAssert("MonikerProxyAttribute can only be used for the service Moniker"); throw DiagnosticUtility.ExceptionUtility.ThrowHelperInternal(false); } return MonikerBuilder.CreateMonikerInstance (); } MarshalByRefObject ICustomFactory.CreateInstance(Type serverType) { if (serverType != typeof (ServiceMoniker)) { DiagnosticUtility.DebugAssert("MonikerProxyAttribute can only be used for the service Moniker"); throw DiagnosticUtility.ExceptionUtility.ThrowHelperInternal(false); } return MonikerBuilder.CreateMonikerInstance (); } } } // 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
- SchemaLookupTable.cs
- XmlCharacterData.cs
- NameObjectCollectionBase.cs
- BrowserCapabilitiesFactory.cs
- RewritingPass.cs
- Win32Native.cs
- ControlIdConverter.cs
- DataBindingCollection.cs
- AuthenticationSection.cs
- FilterException.cs
- JumpTask.cs
- BreadCrumbTextConverter.cs
- ListViewDataItem.cs
- DocumentViewerAutomationPeer.cs
- DependencyProperty.cs
- ELinqQueryState.cs
- JournalNavigationScope.cs
- Directory.cs
- CodeAccessSecurityEngine.cs
- AuthenticationConfig.cs
- ResetableIterator.cs
- FixedTextSelectionProcessor.cs
- SortKey.cs
- __Filters.cs
- LogicalCallContext.cs
- Variant.cs
- SimpleTableProvider.cs
- AnimationStorage.cs
- CollectionDataContractAttribute.cs
- MatrixKeyFrameCollection.cs
- RemotingServices.cs
- DecimalAnimationUsingKeyFrames.cs
- DSASignatureDeformatter.cs
- CommonDialog.cs
- XmlIlVisitor.cs
- SignedInfo.cs
- XmlQueryTypeFactory.cs
- ThicknessAnimationBase.cs
- PermissionSetEnumerator.cs
- RootCodeDomSerializer.cs
- MimeWriter.cs
- GrammarBuilderWildcard.cs
- TextEndOfSegment.cs
- _IPv4Address.cs
- EnumValAlphaComparer.cs
- IChannel.cs
- StorageMappingItemCollection.cs
- CqlParser.cs
- HashFinalRequest.cs
- HtmlTernaryTree.cs
- ObjectSpanRewriter.cs
- ToolStripRendererSwitcher.cs
- GetPageCompletedEventArgs.cs
- InputDevice.cs
- InvalidProgramException.cs
- XsltArgumentList.cs
- ContainerParaClient.cs
- MessageSmuggler.cs
- SharedStatics.cs
- BaseCodePageEncoding.cs
- EmptyEnumerator.cs
- ResourceReferenceExpression.cs
- DictionarySectionHandler.cs
- Int64.cs
- CodeTypeDelegate.cs
- UnregisterInfo.cs
- InternalSafeNativeMethods.cs
- DbConnectionPoolOptions.cs
- DynamicContractTypeBuilder.cs
- RelationshipFixer.cs
- EventRoute.cs
- DesignerImageAdapter.cs
- TypedRowGenerator.cs
- SubtreeProcessor.cs
- MimeTypeMapper.cs
- entityreference_tresulttype.cs
- SecurityTokenRequirement.cs
- DataGridAddNewRow.cs
- ItemsChangedEventArgs.cs
- ProfilePropertySettingsCollection.cs
- Model3D.cs
- TypeBrowserDialog.cs
- TextRangeProviderWrapper.cs
- Model3DGroup.cs
- CollectionChangedEventManager.cs
- ManagementObjectCollection.cs
- CodeAttributeDeclaration.cs
- CodeGenerator.cs
- smtppermission.cs
- RubberbandSelector.cs
- StringDictionary.cs
- WizardPanelChangingEventArgs.cs
- XmlILOptimizerVisitor.cs
- CorrelationHandle.cs
- IDReferencePropertyAttribute.cs
- DefaultAssemblyResolver.cs
- WebHostScriptMappingsInstallComponent.cs
- ToolStripRenderEventArgs.cs
- ClientScriptItemCollection.cs
- EntityStoreSchemaFilterEntry.cs