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
- HttpCapabilitiesEvaluator.cs
- BitmapPalette.cs
- DiscoveryDocument.cs
- WindowsFormsHelpers.cs
- FreeFormDragDropManager.cs
- ReadOnlyCollectionBase.cs
- IApplicationTrustManager.cs
- Operator.cs
- XmlWriterDelegator.cs
- FormatException.cs
- DesignerAdRotatorAdapter.cs
- NativeMethods.cs
- ManagementNamedValueCollection.cs
- GrabHandleGlyph.cs
- CodeGotoStatement.cs
- SHA384CryptoServiceProvider.cs
- HandlerBase.cs
- DataTemplateKey.cs
- MenuCommands.cs
- InlineObject.cs
- UIElementCollection.cs
- SerializerProvider.cs
- XmlTextReaderImpl.cs
- Activity.cs
- RevocationPoint.cs
- DispatcherExceptionEventArgs.cs
- DiscoveryServerProtocol.cs
- ListSourceHelper.cs
- PageCatalogPart.cs
- SecurityTokenException.cs
- ExternalFile.cs
- Trace.cs
- WebPartUtil.cs
- InternalException.cs
- BounceEase.cs
- MenuTracker.cs
- SqlTypeSystemProvider.cs
- MultiTargetingUtil.cs
- MessageCredentialType.cs
- GAC.cs
- XmlStreamStore.cs
- DataGridViewColumnEventArgs.cs
- ProfileInfo.cs
- TemplateBuilder.cs
- LightweightCodeGenerator.cs
- MetadataImporter.cs
- LocalFileSettingsProvider.cs
- ExpressionNormalizer.cs
- SelectionChangedEventArgs.cs
- CellConstantDomain.cs
- KnownTypesHelper.cs
- UInt64Storage.cs
- FixedSOMTableRow.cs
- ConfigPathUtility.cs
- StyleModeStack.cs
- DbParameterCollectionHelper.cs
- SafeCertificateStore.cs
- Transform3DGroup.cs
- AttributeXamlType.cs
- DataControlLinkButton.cs
- SqlFileStream.cs
- DataGridViewCheckBoxColumn.cs
- TemplateEditingService.cs
- SspiHelper.cs
- GorillaCodec.cs
- MenuItemBinding.cs
- DurableEnlistmentState.cs
- MemoryPressure.cs
- SocketStream.cs
- UnsafeNativeMethods.cs
- TextTreeUndo.cs
- TextBoxAutomationPeer.cs
- ResourceManagerWrapper.cs
- TransformCollection.cs
- ObjectTag.cs
- FixedFlowMap.cs
- ConsoleCancelEventArgs.cs
- BamlLocalizer.cs
- ColorMatrix.cs
- arc.cs
- PagesChangedEventArgs.cs
- IconBitmapDecoder.cs
- HostingEnvironmentException.cs
- XmlIlTypeHelper.cs
- OptimalTextSource.cs
- WindowsFormsSynchronizationContext.cs
- EdmMember.cs
- DockAndAnchorLayout.cs
- Frame.cs
- CollectionsUtil.cs
- DatasetMethodGenerator.cs
- HtmlUtf8RawTextWriter.cs
- DesignerValidatorAdapter.cs
- MethodBuilder.cs
- ToolStripManager.cs
- TripleDES.cs
- CryptoProvider.cs
- HandlerWithFactory.cs
- DataObjectPastingEventArgs.cs
- TextEmbeddedObject.cs