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
- SqlFlattener.cs
- XmlSchemaGroup.cs
- ErrorFormatterPage.cs
- AppLevelCompilationSectionCache.cs
- RelationshipNavigation.cs
- TypedServiceChannelBuilder.cs
- DataControlHelper.cs
- DefaultParameterValueAttribute.cs
- DBCommandBuilder.cs
- ResourcesGenerator.cs
- PenThreadPool.cs
- CaseStatementSlot.cs
- ProvidersHelper.cs
- EntityContainerEntitySet.cs
- SqlBinder.cs
- ForEachAction.cs
- VisualTreeHelper.cs
- SR.cs
- SAPIEngineTypes.cs
- WindowsSolidBrush.cs
- AttachedPropertyBrowsableForChildrenAttribute.cs
- SiteMap.cs
- EntityDataSourceViewSchema.cs
- StatusBarItemAutomationPeer.cs
- AbstractExpressions.cs
- DropTarget.cs
- SecurityTokenContainer.cs
- FlatButtonAppearance.cs
- CompareInfo.cs
- ToolStripRendererSwitcher.cs
- MembershipPasswordException.cs
- JsonQNameDataContract.cs
- ScalarRestriction.cs
- Socket.cs
- WinFormsComponentEditor.cs
- FixedSOMTableRow.cs
- SqlServices.cs
- DisposableCollectionWrapper.cs
- CaretElement.cs
- DrawTreeNodeEventArgs.cs
- TransformConverter.cs
- DataGridBoolColumn.cs
- CombinedGeometry.cs
- GenericEnumConverter.cs
- FixedSOMTableCell.cs
- DynamicValueConverter.cs
- CodeEntryPointMethod.cs
- Symbol.cs
- TextServicesProperty.cs
- RecordBuilder.cs
- LocalizableResourceBuilder.cs
- SystemInformation.cs
- ConditionalExpression.cs
- KnownIds.cs
- XmlComment.cs
- Command.cs
- SystemDiagnosticsSection.cs
- ConfigurationValue.cs
- DummyDataSource.cs
- columnmapfactory.cs
- IIS7WorkerRequest.cs
- Help.cs
- SecUtil.cs
- dbdatarecord.cs
- AssemblyFilter.cs
- MouseWheelEventArgs.cs
- GlyphsSerializer.cs
- SessionEndingEventArgs.cs
- Tuple.cs
- XappLauncher.cs
- TextChangedEventArgs.cs
- HitTestResult.cs
- DynamicDocumentPaginator.cs
- SafeLocalMemHandle.cs
- GradientBrush.cs
- TraceSource.cs
- XmlSignatureProperties.cs
- SessionStateUtil.cs
- LingerOption.cs
- ReadContentAsBinaryHelper.cs
- TableCell.cs
- Root.cs
- DynamicActionMessageFilter.cs
- BaseValidatorDesigner.cs
- PageBuildProvider.cs
- SmiEventStream.cs
- FixedSOMTable.cs
- DataView.cs
- FormsIdentity.cs
- ClaimTypeElement.cs
- VirtualizedContainerService.cs
- MSAAWinEventWrap.cs
- XmlSerializableServices.cs
- CompilerLocalReference.cs
- AuthenticationSection.cs
- DecimalConstantAttribute.cs
- CopyAttributesAction.cs
- CodeChecksumPragma.cs
- ByteAnimationUsingKeyFrames.cs
- VisualBrush.cs