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
- ReadContentAsBinaryHelper.cs
- SimpleRecyclingCache.cs
- WebPartMenu.cs
- SqlBuilder.cs
- EllipticalNodeOperations.cs
- CustomBindingCollectionElement.cs
- ColorContext.cs
- ArraySegment.cs
- ClientFormsAuthenticationCredentials.cs
- SmtpClient.cs
- StrongNameMembershipCondition.cs
- NumberSubstitution.cs
- ReceiveDesigner.xaml.cs
- XPathPatternBuilder.cs
- TypeConverterMarkupExtension.cs
- ControlValuePropertyAttribute.cs
- FontNameConverter.cs
- Annotation.cs
- DocumentViewer.cs
- CharacterMetrics.cs
- SimpleFieldTemplateUserControl.cs
- HelpInfo.cs
- EntityViewGenerationConstants.cs
- EntityDataSource.cs
- TextEditorThreadLocalStore.cs
- Point3DConverter.cs
- AssemblyHash.cs
- PageTrueTypeFont.cs
- StrongNamePublicKeyBlob.cs
- TrackPoint.cs
- OdbcDataAdapter.cs
- Int64KeyFrameCollection.cs
- ExtensionElement.cs
- SecurityKeyType.cs
- TailCallAnalyzer.cs
- DataGridViewLinkColumn.cs
- SoapUnknownHeader.cs
- BinaryObjectReader.cs
- SqlCommandAsyncResult.cs
- StateItem.cs
- CompiledWorkflowDefinitionContext.cs
- MemberHolder.cs
- FrameworkContextData.cs
- MaskedTextProvider.cs
- MailMessageEventArgs.cs
- ContractMapping.cs
- RelationshipEndMember.cs
- ObjectQuery_EntitySqlExtensions.cs
- mediaclock.cs
- FilterEventArgs.cs
- TranslateTransform.cs
- SqlPersonalizationProvider.cs
- Tuple.cs
- MarshalByValueComponent.cs
- ConsoleCancelEventArgs.cs
- WebPartZoneBase.cs
- DataView.cs
- EventQueueState.cs
- OdbcConnectionString.cs
- SqlRetyper.cs
- SQLGuidStorage.cs
- FunctionQuery.cs
- ObjectListDataBindEventArgs.cs
- SqlCommandBuilder.cs
- GridViewRow.cs
- DataContractSet.cs
- EdmValidator.cs
- DataGrid.cs
- WebRequestModuleElementCollection.cs
- ClientProxyGenerator.cs
- _RequestCacheProtocol.cs
- GridProviderWrapper.cs
- BasicCellRelation.cs
- SurrogateSelector.cs
- GridViewRowEventArgs.cs
- SafeHandles.cs
- OleDbWrapper.cs
- SimpleApplicationHost.cs
- HyperlinkAutomationPeer.cs
- AppDomainManager.cs
- DataColumn.cs
- SmtpLoginAuthenticationModule.cs
- newinstructionaction.cs
- EndpointDispatcherTable.cs
- ScriptHandlerFactory.cs
- SchemaSetCompiler.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- SchemaImporter.cs
- BitmapSource.cs
- XmlUtf8RawTextWriter.cs
- Win32KeyboardDevice.cs
- IgnorePropertiesAttribute.cs
- SeekStoryboard.cs
- TextTreeUndoUnit.cs
- Metafile.cs
- TransformDescriptor.cs
- NameScopePropertyAttribute.cs
- DesignerObjectListAdapter.cs
- WebPartsPersonalization.cs
- XmlDataImplementation.cs