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
- SerialErrors.cs
- XmlSerializerFactory.cs
- VisualStyleElement.cs
- BasicExpressionVisitor.cs
- ObjectDataSourceDisposingEventArgs.cs
- WebBrowserContainer.cs
- MarkupWriter.cs
- DiscoveryClientDuplexChannel.cs
- COM2PictureConverter.cs
- SqlClientPermission.cs
- ReadOnlyAttribute.cs
- RTLAwareMessageBox.cs
- ToolBarButton.cs
- SerializationSectionGroup.cs
- OdbcRowUpdatingEvent.cs
- CryptoApi.cs
- HighlightOverlayGlyph.cs
- TraceXPathNavigator.cs
- MenuItemStyleCollection.cs
- SourceElementsCollection.cs
- ComponentCommands.cs
- ApplicationContext.cs
- SecurityPolicySection.cs
- WindowPattern.cs
- BindValidationContext.cs
- Int32AnimationUsingKeyFrames.cs
- FontResourceCache.cs
- PartialTrustVisibleAssembly.cs
- VisualStateChangedEventArgs.cs
- LoadGrammarCompletedEventArgs.cs
- Label.cs
- FunctionMappingTranslator.cs
- XmlParserContext.cs
- EntityDataSourceStatementEditor.cs
- Math.cs
- PropertyDescriptorCollection.cs
- PackageRelationshipSelector.cs
- PackagePart.cs
- Buffer.cs
- InternalPermissions.cs
- InternalConfigSettingsFactory.cs
- FrameworkElementAutomationPeer.cs
- URLString.cs
- ResolveNameEventArgs.cs
- EncoderParameter.cs
- ComponentSerializationService.cs
- PingReply.cs
- XsdBuilder.cs
- XmlCountingReader.cs
- NavigateUrlConverter.cs
- CommandLineParser.cs
- SwitchLevelAttribute.cs
- BitmapSizeOptions.cs
- XmlWriterSettings.cs
- HttpRawResponse.cs
- TableChangeProcessor.cs
- ProfilePropertySettingsCollection.cs
- SqlParameterCollection.cs
- RegisteredExpandoAttribute.cs
- SqlBuffer.cs
- TemplateDefinition.cs
- Bezier.cs
- HtmlTextArea.cs
- BindingCompleteEventArgs.cs
- TypeGenericEnumerableViewSchema.cs
- SystemResources.cs
- StylesEditorDialog.cs
- ScriptComponentDescriptor.cs
- Material.cs
- ResetableIterator.cs
- XmlSchema.cs
- WindowsAuthenticationEventArgs.cs
- ClrPerspective.cs
- TreeNodeEventArgs.cs
- WebPartConnectionsCancelVerb.cs
- QilUnary.cs
- CodeMemberEvent.cs
- HierarchicalDataTemplate.cs
- SurrogateSelector.cs
- StrokeCollection.cs
- SEHException.cs
- ADMembershipUser.cs
- PackWebRequest.cs
- BoolExpr.cs
- CodeObject.cs
- GetPageNumberCompletedEventArgs.cs
- WebBaseEventKeyComparer.cs
- SystemInfo.cs
- RawAppCommandInputReport.cs
- ProxySimple.cs
- ProtocolViolationException.cs
- TextEditorSelection.cs
- PropertyMapper.cs
- WindowAutomationPeer.cs
- DataGridGeneralPage.cs
- Parsers.cs
- DecimalKeyFrameCollection.cs
- AutoCompleteStringCollection.cs
- GeneralTransformGroup.cs
- EventListener.cs