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
- XmlSchemaObjectCollection.cs
- PageAsyncTaskManager.cs
- OracleTimeSpan.cs
- ProviderSettings.cs
- DataListItemCollection.cs
- ParameterElementCollection.cs
- DataGridViewRowHeaderCell.cs
- SoapAttributes.cs
- DataContractJsonSerializerOperationFormatter.cs
- OdbcDataReader.cs
- XmlUtil.cs
- CodeVariableReferenceExpression.cs
- RichTextBox.cs
- ColorTransform.cs
- IResourceProvider.cs
- ScaleTransform.cs
- WebPart.cs
- WebPartMenuStyle.cs
- SerializationInfoEnumerator.cs
- PenThreadPool.cs
- CreateUserErrorEventArgs.cs
- StateElement.cs
- Attribute.cs
- ApplicationServicesHostFactory.cs
- SaveFileDialog.cs
- TransformerTypeCollection.cs
- GridViewSortEventArgs.cs
- GlyphElement.cs
- RequestUriProcessor.cs
- TableStyle.cs
- GeneralTransform3DTo2DTo3D.cs
- HttpCookiesSection.cs
- WindowsListViewGroupHelper.cs
- XmlnsPrefixAttribute.cs
- HeaderedItemsControl.cs
- XamlSerializer.cs
- ConfigurationElementCollection.cs
- Component.cs
- QueryInterceptorAttribute.cs
- CLSCompliantAttribute.cs
- CodePageUtils.cs
- WindowsAltTab.cs
- FamilyTypefaceCollection.cs
- Binding.cs
- XmlSerializationReader.cs
- MetadataUtilsSmi.cs
- PlatformCulture.cs
- HtmlTableCellCollection.cs
- DelegatingTypeDescriptionProvider.cs
- InputScopeAttribute.cs
- SignatureDescription.cs
- WebSysDescriptionAttribute.cs
- Constants.cs
- DropDownButton.cs
- ListViewTableCell.cs
- PageRequestManager.cs
- InputManager.cs
- GraphicsState.cs
- PropertyMetadata.cs
- ObjectListCommandEventArgs.cs
- ReadOnlyTernaryTree.cs
- PageThemeParser.cs
- ByteStreamMessageEncodingElement.cs
- WeakReferenceKey.cs
- FileIOPermission.cs
- SortedList.cs
- DataGrid.cs
- EndpointAddress.cs
- StringBlob.cs
- PbrsForward.cs
- MouseButtonEventArgs.cs
- FixedPageStructure.cs
- PageEventArgs.cs
- WindowAutomationPeer.cs
- X509ChainElement.cs
- RelationshipEndMember.cs
- DataGridViewSortCompareEventArgs.cs
- CurrentTimeZone.cs
- ImportedNamespaceContextItem.cs
- CollectionType.cs
- _SslStream.cs
- WriteFileContext.cs
- PermissionSet.cs
- Rect3DConverter.cs
- TransformDescriptor.cs
- FolderBrowserDialog.cs
- WmfPlaceableFileHeader.cs
- XmlEventCache.cs
- TextureBrush.cs
- Animatable.cs
- _ShellExpression.cs
- DecoratedNameAttribute.cs
- ObjectDataSourceChooseMethodsPanel.cs
- DragDrop.cs
- StylusButtonCollection.cs
- SourceChangedEventArgs.cs
- IisTraceWebEventProvider.cs
- HtmlInputFile.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- TextTreeInsertElementUndoUnit.cs