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
- HttpProtocolImporter.cs
- HostingPreferredMapPath.cs
- Listen.cs
- StorageRoot.cs
- CrossAppDomainChannel.cs
- BackgroundFormatInfo.cs
- ResetableIterator.cs
- CreateParams.cs
- ObjectContextServiceProvider.cs
- TextPointerBase.cs
- ProxyWebPartManagerDesigner.cs
- figurelengthconverter.cs
- CursorEditor.cs
- LoadedOrUnloadedOperation.cs
- UnionQueryOperator.cs
- DataPager.cs
- UniqueSet.cs
- GridItem.cs
- MgmtConfigurationRecord.cs
- FollowerQueueCreator.cs
- StateDesigner.TransitionInfo.cs
- XpsPartBase.cs
- CodeLabeledStatement.cs
- Triangle.cs
- ExpressionNode.cs
- WebPartEditorCancelVerb.cs
- validation.cs
- WebPartTransformer.cs
- XmlSerializableReader.cs
- HtmlInputImage.cs
- CustomAttribute.cs
- XmlProcessingInstruction.cs
- DbInsertCommandTree.cs
- IisTraceWebEventProvider.cs
- PageContentAsyncResult.cs
- XNodeValidator.cs
- DbProviderManifest.cs
- NameSpaceExtractor.cs
- FixedTextContainer.cs
- StylusCaptureWithinProperty.cs
- ClrProviderManifest.cs
- SqlNodeAnnotation.cs
- PageTheme.cs
- DocumentScope.cs
- CompositionTarget.cs
- WebRequestModulesSection.cs
- SimpleParser.cs
- BeginGetFileNameFromUserRequest.cs
- QueryOperationResponseOfT.cs
- TrayIconDesigner.cs
- DeflateStream.cs
- StrokeNode.cs
- EntityKeyElement.cs
- ParsedRoute.cs
- xdrvalidator.cs
- MessageDecoder.cs
- CompilerScopeManager.cs
- Avt.cs
- CallInfo.cs
- AsymmetricKeyExchangeDeformatter.cs
- EntityContainerRelationshipSetEnd.cs
- BitmapCache.cs
- SymbolDocumentGenerator.cs
- PropertyDescriptor.cs
- ScrollableControl.cs
- XmlSchemaImporter.cs
- SrgsToken.cs
- DefaultBindingPropertyAttribute.cs
- DefaultSection.cs
- UserControlParser.cs
- TransactionChannelListener.cs
- PanningMessageFilter.cs
- CoreSwitches.cs
- IndexedEnumerable.cs
- FunctionGenerator.cs
- DBSqlParserTableCollection.cs
- PackageRelationship.cs
- sqlser.cs
- TableCell.cs
- PasswordTextNavigator.cs
- DataTableReaderListener.cs
- ContainerParagraph.cs
- Crc32.cs
- ToolStripGrip.cs
- ColorTransformHelper.cs
- DependsOnAttribute.cs
- SingleAnimation.cs
- ListViewItemMouseHoverEvent.cs
- ReferencedType.cs
- MissingManifestResourceException.cs
- ImageDrawing.cs
- ToolStripDropDownClosedEventArgs.cs
- QueryReaderSettings.cs
- CodeRemoveEventStatement.cs
- NamespaceListProperty.cs
- EntityWithKeyStrategy.cs
- UpDownBase.cs
- WindowsTab.cs
- PresentationSource.cs
- FileClassifier.cs