In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly introduces several analytical methods in the WCF framework, the text is very detailed, has a certain reference value, interested friends must read it!
structural proxy method
As can be seen from the name, using this method to create a client service proxy object calls the constructor method of the service proxy class. This method fits very well with the general method of creating objects: generating type instances by way of new. However, to use this method in the WCF framework, you need a prerequisite: you must first have a proxy class. So generating proxy classes is the first problem to be solved by this method. Here are a few common ways to create proxy classes in WCF.
In the WCF framework, creating proxy classes can be divided into the following cases:
*** Type: Know the service metadata address by adding a service reference to the project.
The second is to know the service metadata address and generate proxy classes and configuration files through svcutil.exe.
Third: export metadata from the assembly (dll, exe) in which the service contract resides, and then generate proxy classes from local metadata.
The fourth type: knowing the address of metadata, generating proxy classes through custom code.
The operating procedures of the four methods are described in detail below:
In general, you can click OK to generate the proxy class after filling out the following dialog box with WCF framework, but sometimes, we need to set special settings for the proxy class, such as we want to generate asynchronous operations, to change the dictionary collection to an array, etc., at this time you can click the Advanced button in the lower left corner of the figure above. The following dialog box appears:
The above is "WCF framework parsing methods have several" all the content of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.