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
- CodeExporter.cs
- TransformerTypeCollection.cs
- MatrixAnimationUsingPath.cs
- StoreItemCollection.Loader.cs
- VisualBrush.cs
- VirtualDirectoryMapping.cs
- ListBase.cs
- SqlDataSource.cs
- ByteRangeDownloader.cs
- Attributes.cs
- TokenBasedSet.cs
- CqlParserHelpers.cs
- RoutedEvent.cs
- processwaithandle.cs
- TraceSwitch.cs
- NativeMethods.cs
- SQLString.cs
- GroupBox.cs
- StatusBarDesigner.cs
- EntityContainerEmitter.cs
- SmtpTransport.cs
- NodeFunctions.cs
- SerialPort.cs
- SqlDataSourceAdvancedOptionsForm.cs
- CodeIterationStatement.cs
- GridErrorDlg.cs
- SearchForVirtualItemEventArgs.cs
- FullTextState.cs
- ButtonField.cs
- SHA512.cs
- DataMemberAttribute.cs
- NumericUpDownAcceleration.cs
- SchemaEntity.cs
- BoolExpr.cs
- ThemeConfigurationDialog.cs
- EntityKeyElement.cs
- ColorPalette.cs
- NullEntityWrapper.cs
- ClassicBorderDecorator.cs
- ListBoxItemWrapperAutomationPeer.cs
- Package.cs
- FileLogRecord.cs
- ImageFormat.cs
- PageAdapter.cs
- IncrementalReadDecoders.cs
- SqlTriggerAttribute.cs
- WorkflowPageSetupDialog.cs
- ConnectionsZone.cs
- PerspectiveCamera.cs
- HwndProxyElementProvider.cs
- entityreference_tresulttype.cs
- ColorContext.cs
- ConfigurationPermission.cs
- ProxySimple.cs
- ThousandthOfEmRealDoubles.cs
- PersistenceTypeAttribute.cs
- TransactionCache.cs
- WebDescriptionAttribute.cs
- EntityContainer.cs
- PathFigure.cs
- TreeView.cs
- DrawListViewColumnHeaderEventArgs.cs
- ObjectDataSourceFilteringEventArgs.cs
- ListViewInsertionMark.cs
- ComPlusAuthorization.cs
- HttpProfileBase.cs
- UserNameServiceElement.cs
- DataServiceConfiguration.cs
- RecipientInfo.cs
- WebZone.cs
- ResourcesBuildProvider.cs
- HttpProfileGroupBase.cs
- IdnMapping.cs
- ReadContentAsBinaryHelper.cs
- Quaternion.cs
- DataBindingList.cs
- XmlSchemaSimpleContent.cs
- Base64Decoder.cs
- IsolatedStorageFileStream.cs
- PerfCounters.cs
- WhiteSpaceTrimStringConverter.cs
- DataGridViewColumnStateChangedEventArgs.cs
- ManagedWndProcTracker.cs
- Bidi.cs
- MobileControl.cs
- FormViewPagerRow.cs
- HandleCollector.cs
- XamlSerializerUtil.cs
- XmlSchemaCollection.cs
- NetworkAddressChange.cs
- GradientStopCollection.cs
- WebPartMovingEventArgs.cs
- Ticks.cs
- FormsAuthenticationUserCollection.cs
- OpenTypeLayoutCache.cs
- TextParentUndoUnit.cs
- DataGridDetailsPresenterAutomationPeer.cs
- ByteRangeDownloader.cs
- WebBrowserContainer.cs
- TextSelectionProcessor.cs