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
- OrderByExpression.cs
- ResetableIterator.cs
- Literal.cs
- SmiTypedGetterSetter.cs
- ObjectQuery_EntitySqlExtensions.cs
- InvalidContentTypeException.cs
- _IPv6Address.cs
- CodeComment.cs
- Decoder.cs
- AsymmetricSignatureFormatter.cs
- _WinHttpWebProxyDataBuilder.cs
- HtmlElement.cs
- OneOfTypeConst.cs
- FormViewDeletedEventArgs.cs
- TemplateAction.cs
- BitmapFrame.cs
- ValidationErrorCollection.cs
- SparseMemoryStream.cs
- ConfigXmlWhitespace.cs
- ComplexObject.cs
- ProcessRequestArgs.cs
- XmlTextReader.cs
- SafeThemeHandle.cs
- ConsoleTraceListener.cs
- BaseValidatorDesigner.cs
- TextRangeProviderWrapper.cs
- Relationship.cs
- LinqToSqlWrapper.cs
- ChannelTracker.cs
- Int32Storage.cs
- VersionedStream.cs
- ValidateNames.cs
- PointAnimationUsingPath.cs
- EtwTrace.cs
- ClassHandlersStore.cs
- XPathBuilder.cs
- SqlConnectionStringBuilder.cs
- WebPartEditorApplyVerb.cs
- FrameworkElementFactory.cs
- CompositeFontParser.cs
- FlowDocument.cs
- JsonReader.cs
- Figure.cs
- ContentElement.cs
- CallId.cs
- QilReference.cs
- BookmarkScopeInfo.cs
- SqlLiftWhereClauses.cs
- AssociationSetEnd.cs
- Crypto.cs
- EmptyEnumerable.cs
- documentation.cs
- XmlnsDefinitionAttribute.cs
- CodeMemberEvent.cs
- ScriptControl.cs
- SaveFileDialog.cs
- DesignerActionService.cs
- RectangleHotSpot.cs
- TextServicesManager.cs
- SequenceDesignerAccessibleObject.cs
- PinnedBufferMemoryStream.cs
- PseudoWebRequest.cs
- IndexOutOfRangeException.cs
- GeometryCollection.cs
- Double.cs
- DataGridViewAutoSizeColumnModeEventArgs.cs
- CharConverter.cs
- GridViewAutomationPeer.cs
- ChangeProcessor.cs
- SplitContainer.cs
- HttpContextServiceHost.cs
- TableLayoutSettings.cs
- MeshGeometry3D.cs
- DataGridPageChangedEventArgs.cs
- VisualStyleInformation.cs
- _SingleItemRequestCache.cs
- SystemColors.cs
- TabItem.cs
- IndicFontClient.cs
- RenderData.cs
- PageThemeBuildProvider.cs
- CellCreator.cs
- RelationshipNavigation.cs
- AddingNewEventArgs.cs
- HashCryptoHandle.cs
- LineMetrics.cs
- LinkedDataMemberFieldEditor.cs
- XPathDocument.cs
- MouseEvent.cs
- XmlEnumAttribute.cs
- SessionPageStateSection.cs
- InstalledFontCollection.cs
- StandardToolWindows.cs
- IIS7WorkerRequest.cs
- DocumentManager.cs
- XmlSerializerOperationFormatter.cs
- ConnectionStringSettings.cs
- IdentityHolder.cs
- SimpleFieldTemplateFactory.cs
- TTSEvent.cs