Revert "提交修改"

This reverts commit 5750c4fe56.
This commit is contained in:
2025-10-29 22:41:47 +08:00
parent 5750c4fe56
commit 234b18d3f8
2148 changed files with 5550 additions and 13963 deletions

View File

@@ -0,0 +1,29 @@
#if FEAT_SERVICEMODEL && PLAT_XMLSERIALIZER && FEAT_SERVICECONFIGMODEL
using System;
using System.ServiceModel.Configuration;
namespace ProtoBuf.ServiceModel
{
/// <summary>
/// Configuration element to swap out DatatContractSerilaizer with the XmlProtoSerializer for a given endpoint.
/// </summary>
/// <seealso cref="ProtoEndpointBehavior"/>
public class ProtoBehaviorExtension : BehaviorExtensionElement
{
/// <summary>
/// Creates a new ProtoBehaviorExtension instance.
/// </summary>
public ProtoBehaviorExtension() { }
/// <summary>
/// Gets the type of behavior.
/// </summary>
public override Type BehaviorType => typeof(ProtoEndpointBehavior);
/// <summary>
/// Creates a behavior extension based on the current configuration settings.
/// </summary>
/// <returns>The behavior extension.</returns>
protected override object CreateBehavior() => new ProtoEndpointBehavior();
}
}
#endif