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
- DigitShape.cs
- DataSourceProvider.cs
- HttpProfileBase.cs
- FontFamilyConverter.cs
- SyntaxCheck.cs
- HtmlInputHidden.cs
- X509RawDataKeyIdentifierClause.cs
- ComAdminWrapper.cs
- CryptoApi.cs
- FieldAccessException.cs
- ToolStripRendererSwitcher.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- WindowsSolidBrush.cs
- WebPartAddingEventArgs.cs
- StatusBarPanelClickEvent.cs
- EpmAttributeNameBuilder.cs
- Lookup.cs
- SafeCoTaskMem.cs
- ItemChangedEventArgs.cs
- DataListGeneralPage.cs
- WindowsStatusBar.cs
- DiscardableAttribute.cs
- TextEditorSpelling.cs
- Expander.cs
- DataServices.cs
- GridEntry.cs
- BrowserDefinition.cs
- CodeNamespace.cs
- InvalidComObjectException.cs
- WorkflowApplicationUnhandledExceptionEventArgs.cs
- GridErrorDlg.cs
- RsaSecurityKey.cs
- counter.cs
- TextLineBreak.cs
- BindingFormattingDialog.cs
- CollectionDataContract.cs
- ParsedAttributeCollection.cs
- OutputCacheModule.cs
- DataObjectEventArgs.cs
- CustomAttributeSerializer.cs
- ShaderEffect.cs
- Expressions.cs
- MultiPageTextView.cs
- TreeNodeCollection.cs
- GradientSpreadMethodValidation.cs
- PenContexts.cs
- OrElse.cs
- TypeUtils.cs
- PhoneCall.cs
- HttpCacheVaryByContentEncodings.cs
- ContextStaticAttribute.cs
- HiddenField.cs
- TdsParser.cs
- ImageAttributes.cs
- BackoffTimeoutHelper.cs
- XamlSerializer.cs
- DataGridViewCellStateChangedEventArgs.cs
- CodeCatchClause.cs
- UnsafeNativeMethods.cs
- GenericWebPart.cs
- SqlError.cs
- TypeRestriction.cs
- PseudoWebRequest.cs
- PerformanceCounterNameAttribute.cs
- _CacheStreams.cs
- AgileSafeNativeMemoryHandle.cs
- KnownBoxes.cs
- DataGridViewCellConverter.cs
- TransactionWaitAsyncResult.cs
- OdbcConnectionPoolProviderInfo.cs
- MaterialCollection.cs
- DataViewSetting.cs
- UnmanagedMarshal.cs
- XmlPreloadedResolver.cs
- AutoCompleteStringCollection.cs
- ZipIOExtraField.cs
- DataGridViewColumnConverter.cs
- DesignerView.Commands.cs
- TabControlDesigner.cs
- ServiceHostFactory.cs
- PopupRoot.cs
- DataServiceHostFactory.cs
- ReadOnlyDataSourceView.cs
- PersonalizationStateInfoCollection.cs
- Image.cs
- XmlSchemaComplexContentRestriction.cs
- RootProfilePropertySettingsCollection.cs
- EntityContainerAssociationSet.cs
- WsdlInspector.cs
- DesignerForm.cs
- DesignerOptionService.cs
- CollectionView.cs
- ToolStripDropDownClosedEventArgs.cs
- SortDescriptionCollection.cs
- PromptBuilder.cs
- NullableLongAverageAggregationOperator.cs
- Triplet.cs
- translator.cs
- WsdlBuildProvider.cs
- IImplicitResourceProvider.cs