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
- ObjectDataProvider.cs
- Rotation3DAnimation.cs
- TextServicesDisplayAttribute.cs
- EffectiveValueEntry.cs
- CharacterBuffer.cs
- TypeExtensions.cs
- MembershipPasswordException.cs
- TreeViewImageKeyConverter.cs
- DataServiceEntityAttribute.cs
- DataGridViewControlCollection.cs
- ContainerUIElement3D.cs
- Logging.cs
- Quaternion.cs
- DataServiceQueryOfT.cs
- URIFormatException.cs
- SplineQuaternionKeyFrame.cs
- ProvidePropertyAttribute.cs
- IdentityVerifier.cs
- ThreadSafeList.cs
- Encoder.cs
- RegexReplacement.cs
- EncodingDataItem.cs
- FunctionParameter.cs
- SystemThemeKey.cs
- TargetFrameworkAttribute.cs
- DomainLiteralReader.cs
- Debug.cs
- PermissionRequestEvidence.cs
- MDIControlStrip.cs
- DivideByZeroException.cs
- ValidationError.cs
- MouseEventArgs.cs
- FunctionDescription.cs
- CodeGen.cs
- BitmapEffectOutputConnector.cs
- InvalidDocumentContentsException.cs
- SelectionRangeConverter.cs
- SafeBitVector32.cs
- SnapshotChangeTrackingStrategy.cs
- StrongBox.cs
- XmlAnyElementAttribute.cs
- ImageCodecInfoPrivate.cs
- EventLogEntry.cs
- ListViewItemSelectionChangedEvent.cs
- GeometryCollection.cs
- LogSwitch.cs
- AnonymousIdentificationModule.cs
- ProviderConnectionPoint.cs
- SchemaCollectionCompiler.cs
- QilFactory.cs
- RegexCharClass.cs
- CompiledELinqQueryState.cs
- ResourceIDHelper.cs
- DataViewSettingCollection.cs
- Polygon.cs
- QueryCacheManager.cs
- MessageFilterTable.cs
- PersonalizationStateInfoCollection.cs
- ResourceContainer.cs
- SqlFunctionAttribute.cs
- PolicyValidationException.cs
- FragmentNavigationEventArgs.cs
- KnownColorTable.cs
- ModuleConfigurationInfo.cs
- GregorianCalendarHelper.cs
- StatusBar.cs
- ClientScriptManager.cs
- Shared.cs
- FrameworkTemplate.cs
- SelectionWordBreaker.cs
- FrugalMap.cs
- PermissionListSet.cs
- WindowHideOrCloseTracker.cs
- _ProxyChain.cs
- SmiContextFactory.cs
- SignatureConfirmations.cs
- TagPrefixInfo.cs
- Parsers.cs
- CanonicalXml.cs
- WebPartDisplayMode.cs
- BindToObject.cs
- OptimalTextSource.cs
- ConnectionInterfaceCollection.cs
- ServiceDescriptionReflector.cs
- ParserOptions.cs
- DataGridItem.cs
- UnknownWrapper.cs
- AutomationIdentifierGuids.cs
- MonitoringDescriptionAttribute.cs
- EnumType.cs
- EntitySetBaseCollection.cs
- DeadCharTextComposition.cs
- ILGenerator.cs
- PrefixHandle.cs
- BooleanSwitch.cs
- BaseInfoTable.cs
- SqlTypeConverter.cs
- CodeRegionDirective.cs
- ButtonPopupAdapter.cs
- DeclarativeConditionsCollection.cs