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
- GridItem.cs
- ApplicationCommands.cs
- MsmqIntegrationSecurityElement.cs
- XmlQueryType.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- WebControl.cs
- NetTcpSection.cs
- NameScopePropertyAttribute.cs
- OptimizerPatterns.cs
- NamedPipeDuplicateContext.cs
- CultureSpecificStringDictionary.cs
- XmlSchemaSimpleTypeRestriction.cs
- FrameworkTemplate.cs
- ListenerAdapter.cs
- StoreAnnotationsMap.cs
- ZipQueryOperator.cs
- CoTaskMemHandle.cs
- GeneralTransform3DGroup.cs
- smtpconnection.cs
- PublisherIdentityPermission.cs
- KnownBoxes.cs
- DeclaredTypeElement.cs
- PersistenceIOParticipant.cs
- DataGridViewLinkColumn.cs
- RadioButtonPopupAdapter.cs
- ScrollPattern.cs
- IPCCacheManager.cs
- XmlSerializationGeneratedCode.cs
- HttpStreamMessage.cs
- EFTableProvider.cs
- LayoutInformation.cs
- PropertyGridView.cs
- ElementsClipboardData.cs
- Root.cs
- DataGridAddNewRow.cs
- TimeSpanConverter.cs
- InputProcessorProfilesLoader.cs
- PrimitiveCodeDomSerializer.cs
- ServicePointManagerElement.cs
- StackBuilderSink.cs
- WebPartConnectionsDisconnectVerb.cs
- XmlNodeChangedEventArgs.cs
- HttpInputStream.cs
- SizeKeyFrameCollection.cs
- UInt16.cs
- ViewManager.cs
- XmlUtf8RawTextWriter.cs
- Span.cs
- DefaultPropertyAttribute.cs
- SerialPort.cs
- VisemeEventArgs.cs
- ExpressionPrinter.cs
- InstanceDataCollectionCollection.cs
- HttpApplicationStateWrapper.cs
- User.cs
- MouseButton.cs
- WsdlInspector.cs
- DependencyObject.cs
- SymDocumentType.cs
- TransformCollection.cs
- MDIWindowDialog.cs
- WindowsEditBox.cs
- QueryStringHandler.cs
- SqlDataSourceFilteringEventArgs.cs
- JsonSerializer.cs
- WindowsScrollBar.cs
- TextBoxBaseDesigner.cs
- InvalidOleVariantTypeException.cs
- RSAPKCS1SignatureDeformatter.cs
- QuotedPrintableStream.cs
- Transform3DGroup.cs
- SqlConnectionManager.cs
- SqlServer2KCompatibilityCheck.cs
- QueryCoreOp.cs
- DescendantQuery.cs
- Bits.cs
- DocumentApplicationJournalEntry.cs
- OleTxTransaction.cs
- Point3DCollection.cs
- Style.cs
- DocumentPage.cs
- ItemCollection.cs
- XhtmlBasicTextViewAdapter.cs
- DbDataAdapter.cs
- ExpressionVisitor.cs
- RoleManagerEventArgs.cs
- DataErrorValidationRule.cs
- BuildManager.cs
- ListViewInsertionMark.cs
- Utils.cs
- WinEventQueueItem.cs
- PersonalizationProviderHelper.cs
- UmAlQuraCalendar.cs
- MessageQueuePermissionEntry.cs
- ClientSettingsSection.cs
- ExtenderProvidedPropertyAttribute.cs
- MimeReflector.cs
- PersistenceTypeAttribute.cs
- SmiSettersStream.cs
- BufferManager.cs