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
- DispatcherEventArgs.cs
- CacheModeConverter.cs
- FlowDocumentPageViewerAutomationPeer.cs
- DebuggerAttributes.cs
- DetailsViewDeleteEventArgs.cs
- PieceNameHelper.cs
- DetailsViewRow.cs
- MimePart.cs
- PrivilegedConfigurationManager.cs
- Metafile.cs
- AnnotationMap.cs
- PointF.cs
- XPathQilFactory.cs
- CfgRule.cs
- CodeSnippetStatement.cs
- DataSetMappper.cs
- EmptyQuery.cs
- SqlDataRecord.cs
- CodeGenHelper.cs
- DefaultBinder.cs
- ToolboxBitmapAttribute.cs
- ActiveXSite.cs
- SQLCharsStorage.cs
- Int64AnimationUsingKeyFrames.cs
- HyperLink.cs
- SiteMapNodeItemEventArgs.cs
- WpfKnownType.cs
- StructuredType.cs
- EntityContainer.cs
- FloatAverageAggregationOperator.cs
- ListViewGroupCollectionEditor.cs
- DocumentViewer.cs
- FixedBufferAttribute.cs
- SpecialNameAttribute.cs
- MbpInfo.cs
- SqlServices.cs
- ExpressionBuilderContext.cs
- CompilerHelpers.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- namescope.cs
- ProfileModule.cs
- CacheManager.cs
- AutomationIdentifierGuids.cs
- FastEncoder.cs
- AssemblyLoader.cs
- EntityViewGenerationConstants.cs
- IRCollection.cs
- IsolatedStoragePermission.cs
- GeneralTransform3DTo2DTo3D.cs
- SqlNodeTypeOperators.cs
- DateTimeOffsetAdapter.cs
- AnnotationHelper.cs
- relpropertyhelper.cs
- TextBoxBaseDesigner.cs
- VirtualPath.cs
- XmlQueryOutput.cs
- CodeSnippetTypeMember.cs
- QilLiteral.cs
- RegisteredDisposeScript.cs
- PersonalizationStateInfoCollection.cs
- SQLDecimal.cs
- HtmlInputRadioButton.cs
- Unit.cs
- FastPropertyAccessor.cs
- HtmlTableCell.cs
- NullableIntAverageAggregationOperator.cs
- XmlWrappingReader.cs
- RecognizeCompletedEventArgs.cs
- AttributeUsageAttribute.cs
- SafePointer.cs
- GiveFeedbackEventArgs.cs
- LayoutTableCell.cs
- WebPartTransformerAttribute.cs
- DocumentViewerBaseAutomationPeer.cs
- PKCS1MaskGenerationMethod.cs
- UserPreferenceChangedEventArgs.cs
- TextStore.cs
- CreateUserWizard.cs
- DataGridTable.cs
- ComponentEvent.cs
- Array.cs
- ClientSideQueueItem.cs
- DiagnosticTrace.cs
- DataObjectAttribute.cs
- LinkedList.cs
- SafeLibraryHandle.cs
- LinkButton.cs
- ProcessHost.cs
- IUnknownConstantAttribute.cs
- ValidatingPropertiesEventArgs.cs
- DataGridView.cs
- WhitespaceReader.cs
- PerformanceCountersElement.cs
- RegexCompiler.cs
- SingleAnimationUsingKeyFrames.cs
- TitleStyle.cs
- MetadataWorkspace.cs
- ColorBlend.cs
- BindingManagerDataErrorEventArgs.cs
- BindingSource.cs