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
- SortedDictionary.cs
- ColumnHeaderConverter.cs
- CallInfo.cs
- UInt64Storage.cs
- RawStylusInputCustomDataList.cs
- ControlIdConverter.cs
- Selection.cs
- SecondaryIndexList.cs
- IndentedWriter.cs
- loginstatus.cs
- IList.cs
- ClientBuildManager.cs
- PasswordRecovery.cs
- DocumentXmlWriter.cs
- SqlDataSourceCache.cs
- Repeater.cs
- AttributeQuery.cs
- RegisteredDisposeScript.cs
- InvariantComparer.cs
- ProfileInfo.cs
- Or.cs
- RSAPKCS1SignatureFormatter.cs
- SecurityContext.cs
- InheritanceContextHelper.cs
- RelationshipDetailsRow.cs
- MultipleViewPatternIdentifiers.cs
- EntityDataSourceViewSchema.cs
- BitmapSizeOptions.cs
- PathGeometry.cs
- CompoundFileIOPermission.cs
- UniqueEventHelper.cs
- FormDesigner.cs
- TransformedBitmap.cs
- PropertyRef.cs
- x509store.cs
- ObjectStateEntry.cs
- NotFiniteNumberException.cs
- GetReadStreamResult.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- LogReserveAndAppendState.cs
- StrongNameUtility.cs
- FormsIdentity.cs
- BitmapSizeOptions.cs
- InternalTypeHelper.cs
- EntityWrapperFactory.cs
- PrincipalPermission.cs
- ExpressionBuilder.cs
- StylusDevice.cs
- SqlDelegatedTransaction.cs
- MatrixCamera.cs
- RoutedEventArgs.cs
- FullTextLine.cs
- D3DImage.cs
- TypeExtensions.cs
- LayoutEngine.cs
- SamlAuthorityBinding.cs
- ServiceOperation.cs
- ProfilePropertySettings.cs
- ToolTip.cs
- DropTarget.cs
- WebConfigurationManager.cs
- ResourcePart.cs
- RepeatBehaviorConverter.cs
- DataColumn.cs
- TextTreeText.cs
- ScrollProperties.cs
- SimpleWorkerRequest.cs
- TrackingParameters.cs
- DataTableNameHandler.cs
- DropDownList.cs
- SecurityPolicySection.cs
- WebPartMenu.cs
- XsltSettings.cs
- FixedDocumentPaginator.cs
- DetailsViewModeEventArgs.cs
- ModelItemDictionaryImpl.cs
- FlowDocumentScrollViewer.cs
- DataGridViewToolTip.cs
- GridViewColumnHeaderAutomationPeer.cs
- NamespaceEmitter.cs
- WriterOutput.cs
- LoginViewDesigner.cs
- LocationFactory.cs
- CombinedGeometry.cs
- EntityDataSourceWrapperCollection.cs
- ConfigurationElementCollection.cs
- ConsoleKeyInfo.cs
- StructuredTypeInfo.cs
- Ray3DHitTestResult.cs
- PageMediaSize.cs
- DateTimeEditor.cs
- DelayedRegex.cs
- RenderContext.cs
- TextEndOfSegment.cs
- SqlBulkCopyColumnMapping.cs
- BuilderPropertyEntry.cs
- ProxyHelper.cs
- DoubleConverter.cs
- PrimarySelectionAdorner.cs
- UrlAuthorizationModule.cs