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
- MetadataPropertyAttribute.cs
- FullTextBreakpoint.cs
- FrameworkTemplate.cs
- RemoteWebConfigurationHostServer.cs
- PropertyGrid.cs
- ProtocolsConfigurationEntry.cs
- DirectoryInfo.cs
- SynchronizedDispatch.cs
- RubberbandSelector.cs
- WebHttpElement.cs
- PersonalizationProvider.cs
- DrawTreeNodeEventArgs.cs
- ListViewGroupConverter.cs
- IncrementalCompileAnalyzer.cs
- PaginationProgressEventArgs.cs
- SqlSupersetValidator.cs
- XAMLParseException.cs
- StorageMappingItemLoader.cs
- Matrix.cs
- XmlSchemaSimpleTypeUnion.cs
- ListBox.cs
- EntityDataSourceView.cs
- CultureSpecificStringDictionary.cs
- SpeechSeg.cs
- OpenFileDialog.cs
- HttpApplicationFactory.cs
- CopyAttributesAction.cs
- ArglessEventHandlerProxy.cs
- CodeGenerator.cs
- ToolStripOverflowButton.cs
- BitmapSource.cs
- TransactionTable.cs
- Message.cs
- NGCSerializationManagerAsync.cs
- XmlSchemaInferenceException.cs
- DataGridViewTopLeftHeaderCell.cs
- GestureRecognizer.cs
- HelpProvider.cs
- JobCollate.cs
- HttpCapabilitiesEvaluator.cs
- ContainerVisual.cs
- BitmapImage.cs
- FlagsAttribute.cs
- IdlingCommunicationPool.cs
- JournalEntryStack.cs
- XPathEmptyIterator.cs
- TextPointerBase.cs
- Compiler.cs
- DBNull.cs
- ScrollEvent.cs
- XmlQualifiedName.cs
- Baml2006KeyRecord.cs
- GridViewPageEventArgs.cs
- ListSortDescriptionCollection.cs
- ClickablePoint.cs
- __Error.cs
- DataControlFieldHeaderCell.cs
- HierarchicalDataSourceControl.cs
- QueueProcessor.cs
- StylusTip.cs
- Separator.cs
- DrawingAttributesDefaultValueFactory.cs
- ProfileSection.cs
- TreeNodeCollection.cs
- BindingValueChangedEventArgs.cs
- SerializableAttribute.cs
- ColorConverter.cs
- Variable.cs
- QueryServiceConfigHandle.cs
- EntityCollectionChangedParams.cs
- Size3DConverter.cs
- ItemCheckedEvent.cs
- QilXmlReader.cs
- MeshGeometry3D.cs
- UniqueConstraint.cs
- ConstNode.cs
- SubstitutionResponseElement.cs
- DependencyObjectProvider.cs
- SchemaTableOptionalColumn.cs
- IMembershipProvider.cs
- Int16KeyFrameCollection.cs
- ToolStripRendererSwitcher.cs
- MailDefinition.cs
- ErrorHandler.cs
- ResXResourceReader.cs
- Lasso.cs
- MDIWindowDialog.cs
- StrokeCollection2.cs
- BinaryObjectWriter.cs
- Roles.cs
- SafeProcessHandle.cs
- XamlFilter.cs
- SerializationBinder.cs
- ConsoleCancelEventArgs.cs
- _SingleItemRequestCache.cs
- PassportAuthenticationModule.cs
- RemotingAttributes.cs
- COAUTHIDENTITY.cs
- DoubleIndependentAnimationStorage.cs
- ActivationServices.cs