Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / NetFx35 / System.ServiceModel.Web / System / ServiceModel / Description / DataContractJsonSerializerOperationBehavior.cs / 1 / DataContractJsonSerializerOperationBehavior.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System; using System.Collections.Generic; using System.Text; using System.ServiceModel.Description; using System.Runtime.Serialization; using System.Xml; using System.Runtime.Serialization.Json; class DataContractJsonSerializerOperationBehavior : DataContractSerializerOperationBehavior { bool alwaysEmitTypeInformation; public DataContractJsonSerializerOperationBehavior(OperationDescription description, int maxItemsInObjectGraph, bool ignoreExtensionDataObject, IDataContractSurrogate dataContractSurrogate, bool alwaysEmitTypeInformation) : base(description) { this.MaxItemsInObjectGraph = maxItemsInObjectGraph; this.IgnoreExtensionDataObject = ignoreExtensionDataObject; this.DataContractSurrogate = dataContractSurrogate; this.alwaysEmitTypeInformation = alwaysEmitTypeInformation; } public override XmlObjectSerializer CreateSerializer(Type type, string name, string ns, IListknownTypes) { return new DataContractJsonSerializer(type, name, knownTypes, this.MaxItemsInObjectGraph, this.IgnoreExtensionDataObject, this.DataContractSurrogate, alwaysEmitTypeInformation); } public override XmlObjectSerializer CreateSerializer(Type type, System.Xml.XmlDictionaryString name, System.Xml.XmlDictionaryString ns, IList knownTypes) { return new DataContractJsonSerializer(type, name, knownTypes, this.MaxItemsInObjectGraph, this.IgnoreExtensionDataObject, this.DataContractSurrogate, alwaysEmitTypeInformation); } } } // 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
- OdbcConnectionOpen.cs
- SafeNativeMethodsCLR.cs
- RuntimeResourceSet.cs
- TextServicesDisplayAttributePropertyRanges.cs
- Paragraph.cs
- BitmapSource.cs
- XmlSchemaIdentityConstraint.cs
- ToolStripActionList.cs
- ConfigXmlAttribute.cs
- ToolstripProfessionalRenderer.cs
- ToolStripItem.cs
- NetCodeGroup.cs
- LayoutUtils.cs
- XmlSignatureProperties.cs
- Label.cs
- QualifiedCellIdBoolean.cs
- SQLInt64.cs
- CreateUserWizard.cs
- ClientOperation.cs
- MobileControlsSectionHandler.cs
- ProtocolViolationException.cs
- XamlPathDataSerializer.cs
- TextContainer.cs
- WasEndpointConfigContainer.cs
- GridViewColumnCollection.cs
- XmlSchemaAll.cs
- EventlogProvider.cs
- _ChunkParse.cs
- XmlSerializerAssemblyAttribute.cs
- DesignerTransactionCloseEvent.cs
- ArrayMergeHelper.cs
- RefType.cs
- safemediahandle.cs
- SiteMapSection.cs
- SqlUserDefinedTypeAttribute.cs
- IriParsingElement.cs
- LinkClickEvent.cs
- TableAdapterManagerMethodGenerator.cs
- _DigestClient.cs
- Random.cs
- ValueTable.cs
- DetailsViewPageEventArgs.cs
- TextBlockAutomationPeer.cs
- Overlapped.cs
- ComponentGlyph.cs
- SafeIUnknown.cs
- WCFModelStrings.Designer.cs
- DataKeyCollection.cs
- ValidationRuleCollection.cs
- grammarelement.cs
- MetabaseServerConfig.cs
- MessageHeaderDescription.cs
- columnmapkeybuilder.cs
- Duration.cs
- EventsTab.cs
- Timeline.cs
- MarkedHighlightComponent.cs
- UpDownBase.cs
- XPathConvert.cs
- FtpCachePolicyElement.cs
- SmtpNtlmAuthenticationModule.cs
- Condition.cs
- ChildrenQuery.cs
- SoapAttributes.cs
- DbgUtil.cs
- Propagator.Evaluator.cs
- CodeIterationStatement.cs
- BoundColumn.cs
- RtfFormatStack.cs
- DataServiceKeyAttribute.cs
- ResXResourceReader.cs
- ValueExpressions.cs
- SafeCryptoHandles.cs
- EventManager.cs
- WizardStepBase.cs
- ToolStripRenderEventArgs.cs
- UIAgentAsyncEndRequest.cs
- CodeGotoStatement.cs
- Hex.cs
- QueryableDataSourceEditData.cs
- HtmlInputImage.cs
- DataListItemEventArgs.cs
- Accessible.cs
- Transform3DGroup.cs
- OptionUsage.cs
- ComEventsSink.cs
- _LoggingObject.cs
- NavigationProgressEventArgs.cs
- ComPlusTypeLoader.cs
- DocumentsTrace.cs
- MdiWindowListItemConverter.cs
- Encoder.cs
- InvokeMethodActivityDesigner.cs
- TypeSemantics.cs
- RegionIterator.cs
- arabicshape.cs
- BuildProviderAppliesToAttribute.cs
- HTTPNotFoundHandler.cs
- BitmapEffect.cs
- DataServiceExpressionVisitor.cs