开发者

Why don't these abstract methods need to be implemented?

开发者 https://www.devze.com 2023-04-02 12:51 出处:网络
What am I missing here?In the following webpage, it\'s expl开发者_StackOverflowained how to write a SOAP extension class:

What am I missing here? In the following webpage, it's expl开发者_StackOverflowained how to write a SOAP extension class:

http://msdn.microsoft.com/en-us/magazine/cc188761.aspx

In the proposed extension class, which begins:

public class XmlStreamSoapExtension : SoapExtension

... only ChainStream and ProcessMessage are implemented. However, if I do something similar and try to build, I get build errors that 3 abstract methods:

GetInitializer(Type serviceType)  
GetInitializer(LogicalMethodInfo methodInfo, SoapExtensionAttribute attribute)
Initialize(object initializer)

... have not been implemented. Have they just been omitted for brevity, or am I missing something here that allows you not to have to implement them?


if you notice in the example code, the line

  ... // no-op operations omitted for simplicity

says that they have intentionally omitted these methods (for simplicity).


As stated on the page you link:

I omitted a couple of no-op operations for simplicity.

0

精彩评论

暂无评论...
验证码 换一张
取 消