Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Description / ServiceContractGenerationContext.cs / 1 / ServiceContractGenerationContext.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- namespace System.ServiceModel.Description { using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.CodeDom; using System.CodeDom.Compiler; public class ServiceContractGenerationContext { readonly ServiceContractGenerator serviceContractGenerator; readonly ContractDescription contract; readonly CodeTypeDeclaration contractType; readonly CodeTypeDeclaration duplexCallbackType; readonly Collectionoperations = new Collection (); CodeNamespace codeNamespace; CodeTypeDeclaration channelType; CodeTypeReference channelTypeReference; CodeTypeDeclaration clientType; CodeTypeReference clientTypeReference; CodeTypeReference contractTypeReference; CodeTypeReference duplexCallbackTypeReference; ServiceContractGenerator.CodeTypeFactory typeFactory; public ServiceContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ContractDescription contract, CodeTypeDeclaration contractType) { if (serviceContractGenerator == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("serviceContractGenerator")); if (contract == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contract")); if (contractType == null) throw DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentNullException("contractType")); this.serviceContractGenerator = serviceContractGenerator; this.contract = contract; this.contractType = contractType; } public ServiceContractGenerationContext(ServiceContractGenerator serviceContractGenerator, ContractDescription contract, CodeTypeDeclaration contractType, CodeTypeDeclaration duplexCallbackType) : this(serviceContractGenerator, contract, contractType) { this.duplexCallbackType = duplexCallbackType; } internal CodeTypeDeclaration ChannelType { get { return this.channelType; } set { this.channelType = value; } } internal CodeTypeReference ChannelTypeReference { get { return this.channelTypeReference; } set { this.channelTypeReference = value; } } internal CodeTypeDeclaration ClientType { get { return this.clientType; } set { this.clientType = value; } } internal CodeTypeReference ClientTypeReference { get { return this.clientTypeReference; } set { this.clientTypeReference = value; } } public ContractDescription Contract { get { return this.contract; } } public CodeTypeDeclaration ContractType { get { return this.contractType; } } internal CodeTypeReference ContractTypeReference { get { return this.contractTypeReference; } set { this.contractTypeReference = value; } } public CodeTypeDeclaration DuplexCallbackType { get { return this.duplexCallbackType; } } internal CodeTypeReference DuplexCallbackTypeReference { get { return this.duplexCallbackTypeReference; } set { this.duplexCallbackTypeReference = value; } } internal CodeNamespace Namespace { get { return this.codeNamespace; } set { this.codeNamespace = value; } } public Collection Operations { get { return this.operations; } } public ServiceContractGenerator ServiceContractGenerator { get { return this.serviceContractGenerator; } } internal ServiceContractGenerator.CodeTypeFactory TypeFactory { get { return this.typeFactory; } set { this.typeFactory = value; } } } } // 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
- WebBrowsableAttribute.cs
- DataPager.cs
- PageSettings.cs
- WmpBitmapEncoder.cs
- Char.cs
- OrderedDictionaryStateHelper.cs
- XmlConvert.cs
- _ProxyChain.cs
- RadioButton.cs
- DbMetaDataCollectionNames.cs
- CallContext.cs
- PagePropertiesChangingEventArgs.cs
- Span.cs
- LambdaSerializationException.cs
- SerializerDescriptor.cs
- ObjectIDGenerator.cs
- ValidatorCollection.cs
- RegistrySecurity.cs
- EncryptedPackageFilter.cs
- GlobalEventManager.cs
- HttpHandlersSection.cs
- AnnotationComponentChooser.cs
- EntityDataSourceMemberPath.cs
- ItemContainerGenerator.cs
- ButtonPopupAdapter.cs
- CommentGlyph.cs
- PersonalizationState.cs
- DataGridTablesFactory.cs
- Wildcard.cs
- CommonRemoteMemoryBlock.cs
- ColumnHeaderConverter.cs
- SAPIEngineTypes.cs
- StringKeyFrameCollection.cs
- DataColumnPropertyDescriptor.cs
- NameObjectCollectionBase.cs
- Matrix3D.cs
- RtType.cs
- Transform.cs
- cookie.cs
- CustomError.cs
- ImportOptions.cs
- HtmlElementErrorEventArgs.cs
- Converter.cs
- FrameworkElementFactory.cs
- GridViewItemAutomationPeer.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- DelegateInArgument.cs
- Part.cs
- CompilationUtil.cs
- Operator.cs
- FontFamilyConverter.cs
- EventLogSession.cs
- ConfigXmlCDataSection.cs
- VectorConverter.cs
- MSAAWinEventWrap.cs
- Timeline.cs
- StructuredTypeEmitter.cs
- Vector3DCollectionConverter.cs
- EncodingTable.cs
- AuthenticationConfig.cs
- XmlBinaryReaderSession.cs
- ServiceMemoryGates.cs
- TreeNodeCollection.cs
- TransformerTypeCollection.cs
- SoapExtensionStream.cs
- InvokeBinder.cs
- CLRBindingWorker.cs
- DataGridTextColumn.cs
- UpdateCommand.cs
- CodeTypeReferenceCollection.cs
- DrawingCollection.cs
- ActivityCompletionCallbackWrapper.cs
- XmlCDATASection.cs
- SendDesigner.xaml.cs
- WebPartDescription.cs
- ResourceKey.cs
- HtmlElementErrorEventArgs.cs
- TextSegment.cs
- GroupQuery.cs
- MatrixTransform3D.cs
- MessageSecurityOverMsmq.cs
- PathNode.cs
- WebPartEditorOkVerb.cs
- InputReportEventArgs.cs
- HttpStreamMessage.cs
- DBCommand.cs
- PropertyDescriptorCollection.cs
- TypeListConverter.cs
- CancellationTokenRegistration.cs
- ResourceAssociationSet.cs
- KeyFrames.cs
- GeometryModel3D.cs
- WebBrowser.cs
- OrthographicCamera.cs
- XPathNodeIterator.cs
- WebPartConnectionsConfigureVerb.cs
- StreamHelper.cs
- UserUseLicenseDictionaryLoader.cs
- MonthCalendar.cs
- TemplateBindingExtension.cs