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
- Exception.cs
- ToolBar.cs
- ExtenderProvidedPropertyAttribute.cs
- HMAC.cs
- BoundField.cs
- DockProviderWrapper.cs
- securitycriticaldataClass.cs
- ApplicationException.cs
- CommandEventArgs.cs
- DataGrid.cs
- SpeakInfo.cs
- GridViewRowPresenter.cs
- FixedSOMPage.cs
- FrameworkName.cs
- PartitionResolver.cs
- DesignerSerializationOptionsAttribute.cs
- ExtensionQuery.cs
- RayHitTestParameters.cs
- Matrix3DStack.cs
- PenContexts.cs
- DbTransaction.cs
- EndEvent.cs
- ParallelSeparator.xaml.cs
- Win32Native.cs
- RadialGradientBrush.cs
- returneventsaver.cs
- NGCSerializer.cs
- UIElement3D.cs
- AnimationStorage.cs
- ServiceManager.cs
- HttpModuleCollection.cs
- XPathExpr.cs
- IndentTextWriter.cs
- DateTimeOffset.cs
- EntityWrapperFactory.cs
- GlyphManager.cs
- TickBar.cs
- TextBreakpoint.cs
- EventMappingSettingsCollection.cs
- WebControlParameterProxy.cs
- ScopeElementCollection.cs
- FormViewInsertedEventArgs.cs
- TextEndOfSegment.cs
- TypeExtension.cs
- CollectionConverter.cs
- DataObjectEventArgs.cs
- DataGridViewCellStyleConverter.cs
- MultiPartWriter.cs
- AddInDeploymentState.cs
- EventProviderClassic.cs
- ToolBarDesigner.cs
- SqlAliaser.cs
- WinFormsSpinner.cs
- CommandExpr.cs
- BmpBitmapEncoder.cs
- ContainerAction.cs
- OpCodes.cs
- ScriptBehaviorDescriptor.cs
- ConfigurationElementProperty.cs
- Canvas.cs
- AutoCompleteStringCollection.cs
- WindowsScrollBarBits.cs
- DirtyTextRange.cs
- CompatibleComparer.cs
- NotFiniteNumberException.cs
- Errors.cs
- DataGridViewColumnTypeEditor.cs
- XsdDateTime.cs
- ServiceOperationListItem.cs
- ArgumentFixer.cs
- UpDownBase.cs
- TimeZoneInfo.cs
- Triangle.cs
- MsmqEncryptionAlgorithm.cs
- XslCompiledTransform.cs
- BlurEffect.cs
- NameValueConfigurationElement.cs
- ContextMenu.cs
- TypeContext.cs
- SourceElementsCollection.cs
- printdlgexmarshaler.cs
- WorkflowApplicationAbortedEventArgs.cs
- CodeDOMProvider.cs
- CallContext.cs
- EventSourceCreationData.cs
- BindingGraph.cs
- MainMenu.cs
- NetStream.cs
- CodeRemoveEventStatement.cs
- SqlTriggerAttribute.cs
- SplineKeyFrames.cs
- FacetDescription.cs
- DynamicRendererThreadManager.cs
- FixedSOMTable.cs
- DefinitionBase.cs
- RegistryDataKey.cs
- TakeOrSkipWhileQueryOperator.cs
- HashAlgorithm.cs
- EmptyElement.cs
- VisualTarget.cs