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
- XmlQualifiedName.cs
- SoapAttributeAttribute.cs
- Point3DCollectionValueSerializer.cs
- AutomationIdentifier.cs
- MemberProjectionIndex.cs
- DataGridCellClipboardEventArgs.cs
- GridViewColumnCollection.cs
- HiddenFieldPageStatePersister.cs
- PingOptions.cs
- PropertyEmitterBase.cs
- _HelperAsyncResults.cs
- ForwardPositionQuery.cs
- FontDifferentiator.cs
- PowerModeChangedEventArgs.cs
- SortedList.cs
- RealizationDrawingContextWalker.cs
- CharAnimationBase.cs
- Parameter.cs
- ToolboxItem.cs
- MbpInfo.cs
- SQLBoolean.cs
- ImportContext.cs
- BaseTreeIterator.cs
- UrlRoutingModule.cs
- SqlVisitor.cs
- ObjectNotFoundException.cs
- ReadingWritingEntityEventArgs.cs
- SafeBitVector32.cs
- WindowsAuthenticationEventArgs.cs
- TextBox.cs
- WebPartManagerInternals.cs
- CorrelationActionMessageFilter.cs
- AnimationClockResource.cs
- XmlDataImplementation.cs
- Size.cs
- OleDbDataReader.cs
- BitArray.cs
- ImpersonateTokenRef.cs
- Transform.cs
- ExpressionEditorAttribute.cs
- DictionaryBase.cs
- UnaryNode.cs
- LineBreak.cs
- SqlTransaction.cs
- FixedSOMSemanticBox.cs
- diagnosticsswitches.cs
- Helpers.cs
- ListControl.cs
- FilterElement.cs
- DeferredTextReference.cs
- SetState.cs
- BamlLocalizabilityResolver.cs
- EnumerableRowCollectionExtensions.cs
- ProjectionNode.cs
- DataGridViewTextBoxEditingControl.cs
- AudioException.cs
- DrawingImage.cs
- DefinitionUpdate.cs
- elementinformation.cs
- NotCondition.cs
- FixedSOMPageConstructor.cs
- ConsoleTraceListener.cs
- DiagnosticTraceRecords.cs
- PerformanceCounterCategory.cs
- MyContact.cs
- UnsafeNativeMethods.cs
- ScaleTransform3D.cs
- SafeArrayRankMismatchException.cs
- CombinedGeometry.cs
- RequestDescription.cs
- DataRecordObjectView.cs
- PageBreakRecord.cs
- ActivityCodeDomSerializer.cs
- ServiceOperation.cs
- Adorner.cs
- SpeechSeg.cs
- AdvancedBindingEditor.cs
- DecimalConstantAttribute.cs
- DbMetaDataColumnNames.cs
- TextRangeSerialization.cs
- Qualifier.cs
- StopRoutingHandler.cs
- PropertyEmitter.cs
- ObjectSet.cs
- CompModSwitches.cs
- AsyncOperation.cs
- ProfileGroupSettings.cs
- TextRenderer.cs
- DataTableCollection.cs
- _NetworkingPerfCounters.cs
- TypeViewSchema.cs
- Lookup.cs
- DbDataRecord.cs
- System.Data_BID.cs
- Rules.cs
- ImageDrawing.cs
- XomlSerializationHelpers.cs
- SynchronizationContext.cs
- Trace.cs
- Animatable.cs