Thursday, June 16, 2011

synchronous and asynchronous calls to the WCF service

Both synchronous and asynchronous calls to the WCF service are pretty simple by using the proxies generated by the Visual Studio. When making a synchronous call, the UI thread that issues the call will be blocked until the WCF service sends the results back to the client. When an asynchronous call is made, the UI thread sends the WCF request and forks a worker thread to wait for the response from the WCF service. The UI thread is not blocked and remains responsive to other user interactions. When the response from the WCF service comes back, the "AsyncCallback" "delegate" is executed to process the WCF service response.

taking from

http://www.codeproject.com/KB/WCF/TwoWaysCallWCF.aspx


For my own reference.

Saturday, May 21, 2011

What is WakeLock?

Keep CPU and Screen keep running forceful. Which cause the battery drains the battery and efficiency.

Tuesday, May 17, 2011

Map Point, FindServiceSoap.FindAddress Method

  • The FindAddress method is valid with the MapPoint.AP, MapPoint.BR, MapPoint.EU, and MapPoint.NA data sources. For general information about the MapPoint Web Service data sources, see MapPoint Web Service Data Sources and Capabilities.

  • Address information can be returned from only certain countries or regions within the MapPoint.AP, MapPoint.BR, MapPoint.EU, and MapPoint.NA data sources.

  • Assigning a range or start index that is greater than 100 with this method does not cause any errors in your applications. However, this method does not return any valid addresses when such range or start index is assigned.

  • If no results are found, the returned FindResults.NumberFound property value is 0.

    (From MSDN for my own reference.)

    For more details

    http://msdn.microsoft.com/en-us/library/cc534885.aspx


    In MWS, the FindResult.Score property supplies the estimated level of accuracy for a given search result. The

    score ranges between 1.0 and 0.0, between and exact match and no match respectively.

    The Bing Locations API Location response contains a Confidence element with one of the following values: High,

    Medium, Low and Unknown. The JSON response in the Appendix shows a confidence value of High for the single

    result. For less specific searches, the JSON response may include multiple results.

Thursday, May 5, 2011

Switching from Map Point Staging to Production Environment

<add key="IsProduction" value="T" />


<add key="RServiceStaging" value="http://renderv3.staging.mappoint.net/render-30/RenderService.asmx" />
<add key="RServiceProduction" value="http://renderv3.mappoint.net/render-30/RenderService.asmx" />


<add key="FServiceStaging" value="http://findv3.staging.mappoint.net/find-30/FindService.asmx" />
<add key="FServiceProduction" value="http://findv3.mappoint.net/find-30/FindService.asmx" />


<add key="RtServiceStaging" value="http://routev3.staging.mappoint.net/route-30/RouteService.asmx" />
<add key="RtServiceProduction" value="http://routev3.mappoint.net/route-30/RouteService.asmx" />


<add key="CServiceStaging" value="http://findv3.staging.mappoint.net/find-30/CommonService.asmx" />
<add key="CServiceProduction" value="http://findv3.mappoint.net/find-30/CommonService.asmx" />

Thursday, April 28, 2011

Code-First and Contract-First Development Style


Marking a class or interface with ServiceContract and one or more of its methods with OperationContract also allows automatically generating service contract definitions in WSDL. Accordingly, the externally visible definition of every WCF service contract can be accessed as a standard WSDL document specifying the operations in that contract. This style of development, commonly called code-first, allows creating a standard interface definition directly from types defined in programming languages such as C# or Visual Basic.

An alternative approach is contract-first development, an option that WCF also supports. In this case, a developer typically starts with a WSDL document describing the interface (i.e., the contract) that a service class must implement. Using a tool called svcutil, the developer can generate a skeleton service class directly from a WSDL definition.

copied from MSDN for my own reference.

Friday, April 15, 2011

How to disconnect SVN working copy


The simple solution is that remove all “.svn” hidden folder from the local directory.