<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:atom="https://www.w3.org/2005/Atom" xmlns:sy="https://purl.org/rss/1.0/modules/syndication/" xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:wfw="https://wellformedweb.org/CommentAPI/" xmlns:slash="https://purl.org/rss/1.0/modules/slash/"
  version="2.0">
  <channel>
    <title>My TechLearnings</title>
    <atom:link
      href="https://docs.microsoft.com/archive/blogs/anibakore/feed.xml"
      rel="self"
      type="application/rss+xml" />
    <link>https://docs.microsoft.com/archive/blogs/anibakore/feed.xml</link>
    <description />
    <lastBuildDate>Wed, 17 Apr 2019 03:38:34 GMT</lastBuildDate>
    <language>en-US</language>
    <sy:updatePeriod>hourly</sy:updatePeriod>
    <sy:updateFrequency>1</sy:updateFrequency>
    <item>
      <title>Hybrid and Combined SharePoint provider hosted addin</title>
      <link>https://docs.microsoft.com/archive/blogs/anibakore/hybrid_combined_provider_hosted_app</link>
      <pubDate>Mon, 04 Apr 2016 09:20:25 GMT</pubDate>
      <dc:creator><![CDATA[AnirudhB]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/anibakore/?p=81</guid>
      <description><![CDATA[SharePoint 2013 provider hosted addins template in Visual studio comes with one disadvantage  - It...]]></description>
      <content:encoded><![CDATA[SharePoint 2013 provider hosted addins template in Visual studio comes with one disadvantage  - It is designed for either onprem or online. Also, it is designed for a single app.

My customer's requirements were simple-

<strong>1. Hybrid:</strong>There should be only 1 web project in visual studio for SharePoint online and on-premises. So, the app/add-in should consider both S2S and ACS authentication at the same time. In other words it should support low-trust as well as high-trust authentication within the single web application.

<strong>2. Combined:</strong> There should be a single IIS web application and single visual studio project for 3 SharePoint Provider hosted add-ins. All the 3 add-ins should redirect to the same web app with different start pages.

Following is the scheme that was required for ClientId/ClientSecret/IssuerId for the apps
<div style="direction: ltr;border-width: 100%">
<div style="direction: ltr;margin-top: 0in;margin-left: 0in;width: 3.743in">
<div style="direction: ltr;margin-top: 0in;margin-left: 0in;width: 3.743in">
<div style="direction: ltr">
<table style="direction: ltr;border-collapse: collapse;border: 1pt solid #A3A3A3" border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td style="vertical-align: top;width: .6673in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">Name</p>
</td>
<td style="vertical-align: top;width: 1.3798in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">On-Prem</p>
</td>
<td style="vertical-align: top;width: 1.4479in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">Online</p>
</td>
</tr>
<tr>
<td style="vertical-align: top;width: .6701in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">Addin1</p>
</td>
<td style="vertical-align: top;width: 1.3993in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">ClientId1/IssuerId1</p>
</td>
<td style="vertical-align: top;width: 1.5798in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">ClientId1/ClientSecret1</p>
</td>
</tr>
<tr>
<td style="vertical-align: top;width: .6701in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">Addin2</p>
</td>
<td style="vertical-align: top;width: 1.3993in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">ClientId2/IssuerId1</p>
</td>
<td style="vertical-align: top;width: 1.5798in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">ClientId2/ClientSecret2</p>
</td>
</tr>
<tr>
<td style="vertical-align: top;width: .6701in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">Addin3</p>
</td>
<td style="vertical-align: top;width: 1.3993in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">ClientId3/IssuerId1</p>
</td>
<td style="vertical-align: top;width: 1.5798in;padding: 2.0pt 3.0pt 2.0pt 3.0pt;border: 1pt solid #A3A3A3">
<p style="margin: 0in;font-family: Calibri;font-size: 11.0pt">ClientId3/ClientSecret3</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
Both the above requirements were solved by tampering TokenHelper.cs and SharePointContext.cs classes that come as a part of Visual studio template. Following post specifies generic guidelines and changes that have to be done to meet above requirements.

1. Client Id, Client Secret, ClientSigningCertificatePath, ClientSigningCertificatePassword and IssuerId have to be present in the web.config of our app. One important point to note here is the following code

<code>public static bool IsHighTrustApp()
{
return SigningCredentials != null;
}</code>

This code in tokenhelper decides if the S2SContextProvider to invoke or ACSContextProvider to invode. Please note that SingingCredentials is just a property that checks if there is any certificate path provided in web.config and prepares that certificate. We changed it to true/false depending upon the request URL. If it was coming from On-Prem SP farm then return true else return false. Also, note that this property is static. So, if you don't change the code above, it will get instantiated before any code is executed and it will always assume that the app is hightrust app. So, beware.

2. In the request pipeline, the App invokes series of methods to load SharePoint context, save SharePoint context, get client id/client secret etc. We inserted our own methods in each of SharePoint's methods. This way, we could be minimally invasive and still achieve the desired results. Following is the hierarchy of the context.

<a href="https://msdnshared.blob.core.windows.net/media/2016/04/diag1.png"><img class="alignnone size-medium wp-image-91" src="https://msdnshared.blob.core.windows.net/media/2016/04/diag1-300x179.png" alt="diag1" width="300" height="179" /></a>

So, we need to change following methods in both the overridden classes.

1. LoadSharePointContext

2. SaveSharePointContext

Apart from the methods, changes have to be done in

ClientId and ClientSecret static properties.

Now for our requirement 2, Client id and Client secret were different for different app. So, we modified the static properties to below and wrote our logic to fetch client id and client secret depending upon the URL of the app.

private static string ClientId = ContextHelper.GetClientId();
private static string ClientSecret = ContextHelper.GetClientSecret();

GetClientId was implemented to something like below

<code>public static string GetClientId()
{
try
{
string currentUrl = HttpContext.Current.Request.RawUrl;
////Get the title of the current AddIn using the current url
AddinSection section = (AddinSection)ConfigurationManager.GetSection("Addins");
AddIn addin = section.Addins.Cast&amp;lt;AddIn&amp;gt;().First(a =&amp;gt; currentUrl.ToLower().Contains(a.Url.ToLower()));
////Return the ClientId corresponding to the current AddIn
return addin.ClientId;
}
catch (Exception ex)
{
return string.Empty;
}
}
</code>

The above logic is applicable to all the following methods. In all the below methods, the original call is replaced by our helper call. This makes sure, every time following methods are called, we are passing appropriate context and details as per the incoming URL.

LoadSharePointContext

LoadSharePointAcsContext

LoadSharePointHighTrustContext

SaveSharePointContext

Few things about Load and Save SharePoint context. The tokenhelper uses a session variable to save and load context. So, we created 3 more session variables to load and then save context.

Also, there is a cookie that gets created in SaveSharePointContext, which is called spCacheKeyCookie. This needs to be changed to create 3 more cookie variables depending on our url that comes through.

Last but not the least, we added RefreshClientId method in our SharePointContextFilterAttribute's OnExecuting method. This method just takes the client id and client secret again from the config depending upon the incoming URL. This is the first method that gets called, when any add-ins controller is invoked. This ensures that we are always taking correct client id even if the user is switching between our apps.

And that's about it. With all the above changes we were able to create a single Visual studio web project that serves for 3 different apps in 2 different environment!

Thanks to my teammate Sonia Suhag.

Complete code sample below:

<a title="Hosting Multiple Addins" href="https://github.com/soniasuhag/PnP/tree/dev/Samples/Provisioning.HostingMultipleAddins" target="_blank">Hosting Multiple Addins</a>]]></content:encoded>
    </item>
    <item>
      <title>Using XBAP in client applications using webbrowser controls</title>
      <link>https://docs.microsoft.com/archive/blogs/anibakore/using-xbap-in-client-applications-using-webbrowser-controls</link>
      <pubDate>Tue, 26 Apr 2011 08:07:00 GMT</pubDate>
      <dc:creator><![CDATA[AnirudhB]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/anibakore/2011/04/26/using-xbap-in-client-applications-using-webbrowser-controls/</guid>
      <description><![CDATA[&nbsp;
Using XBAPs in client applications using webbrowser controls.
&nbsp;
WPF XBAP applications...]]></description>
      <content:encoded><![CDATA[<p>&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Using XBAPs in client applications using webbrowser controls.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">WPF XBAP applications are now widely used in server applications. However, they present some unique challenges when we want to use them in Windows or client applications.</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">These challenges are typically</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal;">
<li value="1" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Communication between client app to xbap</span></li>
</ol><ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal;">
<li value="2" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Communication between xbap to client application</span></li>
<li style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-family: Calibri; font-size: 11pt;">Deployment and signing</span></li>
</ol>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">Lets see how we can first try to solve first 2 issues.</p>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span style="mso-spacerun: yes;">&nbsp;</span>We need to use webbrowser controls in order to use xbap applications at the client side. Assume the xbap is hosted at a specific client location on disk such as "C:\ProgramData\MyXbap.xbap"</p>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">We can just simply use </p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: black;">webbrowsercontrol1.Navigate("</span><span style="background: white; color: #a31515;"><a href="file://C:/ProgramData/MyXbap.xbap">file://C:/ProgramData/MyXbap.xbap</a></span><span style="background: white; color: black;">");</span></p>
<p style="margin: 0in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: black;"></span></p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;"><span style="mso-spacerun: yes;">&nbsp;</span>and it will work in most of the scenarios. </p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in; font-family: Calibri; font-size: 11pt;">However, when we<span style="mso-spacerun: yes;">&nbsp; </span>would have to send some data or parameters between client app and the xbap, this approach will not work.</p>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">Communication from Webbrowser to<span style="mso-spacerun: yes;">&nbsp; </span>XBAP</p>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal;">
<li value="1" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Create a simple test.html page.</span></li>
</ol>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal;">
<li value="2" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">In webbrowser control use, </span><ol type="a" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal;">
<li value="1" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Consolas; background: white; color: black; font-size: 9.75pt; font-weight: normal;">webbrowsercontrol1.Navigate("test.html?params=abc");</span><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;"> we can prepare the querystring dynamically also here with runtime parameters</span></li>
</ol></li>
</ol>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.375in; font-size: 11pt; font-weight: normal;">
<li value="3" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Add Init() javascript function on html page as shown below. It just adds a dynamic iframe to the page.</span></li>
</ol>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">The source of this dynamic iframe is also dynamic with runtime parameters.<span style="mso-spacerun: yes;">&nbsp; </span>Basically, this code gets the url and the querystring from the url of the HTML page and uses this information to create a dynamic xbap url which we can use later.</p>
<p style="margin: 0in 0in 0in 0.375in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: blue;">&lt;</span><span style="background: white; color: maroon;">script</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: red;">language</span><span style="background: white; color: blue;">="javascript"</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: red;">type</span><span style="background: white; color: blue;">="text/javascript"&gt;</span><span style="background: white; color: black;"><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Init();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background: white; color: blue;">function</span><span style="background: white; color: black;">&nbsp;Init()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;url&nbsp;=&nbsp;window.location.search;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array&nbsp;=&nbsp;url.split(</span><span style="background: white; color: maroon;">'='</span><span style="background: white; color: black;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;params&nbsp;=&nbsp;array[1];<br /><span style="mso-spacerun: yes;">&nbsp;</span><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background: white; color: blue;">var</span><span style="background: white; color: black;">&nbsp;el&nbsp;=&nbsp;window.document.createElement(</span><span style="background: white; color: maroon;">"iframe"</span><span style="background: white; color: black;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.setAttribute(</span><span style="background: white; color: maroon;">'id'</span><span style="background: white; color: black;">,&nbsp;</span><span style="background: white; color: maroon;">'ifrm'</span><span style="background: white; color: black;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.setAttribute(</span><span style="background: white; color: maroon;">'height'</span><span style="background: white; color: black;">,&nbsp;</span><span style="background: white; color: maroon;">'100%'</span><span style="background: white; color: black;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.setAttribute(</span><span style="background: white; color: maroon;">'width'</span><span style="background: white; color: black;">,&nbsp;</span><span style="background: white; color: maroon;">'100%'</span><span style="background: white; color: black;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;window.document.body.appendChild(el);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;targetUrl&nbsp;=&nbsp;</span><span style="background: white; color: maroon;">'MyXabap.xbap?parameter='</span><span style="background: white; color: black;">&nbsp;+&nbsp;params;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;el.setAttribute(</span><span style="background: white; color: maroon;">"src"</span><span style="background: white; color: black;">,&nbsp;targetUrl);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.75in; font-size: 11pt; font-weight: normal;">
<li value="3" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Create another javscript function to get parameters</span></li>
</ol>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: black;">&nbsp;&nbsp;&nbsp;</span><span style="background: white; color: blue;">function</span><span style="background: white; color: black;">&nbsp;GetParameters()&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;params&nbsp;=&nbsp;window.location.search;<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;array&nbsp;=&nbsp;params.split(</span><span style="background: white; color: maroon;">'='</span><span style="background: white; color: black;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background: white; color: blue;">return</span><span style="background: white; color: black;">&nbsp;array[1];<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 1.125in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.75in; font-size: 11pt; font-weight: normal;">
<li value="4" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">In XBAP code behind use following code to retrieve the parameters</span></li>
</ol>
<p style="margin: 0in 0in 0in 1.125in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: blue;">var</span><span style="background: white; color: black;">&nbsp;hostScript&nbsp;=&nbsp;</span><span style="background: white; color: #2b91af;">BrowserInteropHelper</span><span style="background: white; color: black;">.HostScript;<br /><span style="mso-spacerun: yes;">&nbsp;</span><br /></span><span style="background: white; color: blue;">if</span><span style="background: white; color: black;">&nbsp;(hostScript&nbsp;!=&nbsp;</span><span style="background: white; color: blue;">null</span><span style="background: white; color: black;">)<br />{<br /><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp; </span>params&nbsp;=&nbsp;hostScript.GetParameters();<br />}</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">And that&rsquo;s about it. You can use these parameters in XBAP anywhere.</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">Communication from XBAP to Webbrowser.</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">My requirement was to invoke a document click event of the webbrowser. However, any document click on xbap is not captured directly by the host webbrowser control. So, following work around was used.</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.75in; font-size: 11pt; font-weight: normal;">
<li value="1" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Add following hidden fields</span></li>
</ol>
<p style="margin: 0in 0in 0in 1.125in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: blue;">&lt;</span><span style="background: white; color: maroon;">body</span><span style="background: white; color: blue;">&gt;</span><span style="background: white; color: black;"><br /></span><span style="background: white; color: blue;"><span style="mso-spacerun: yes;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="background: white; color: maroon;">input</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: red;">id</span><span style="background: white; color: blue;">="SpecificId"</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: red;">name</span><span style="background: white; color: blue;">="SpecificButton"</span><span style="background: white; color: black;">&nbsp;&nbsp;</span><span style="background: white; color: red;">type</span><span style="background: white; color: blue;">="hidden"</span><span style="background: white; color: black;">&nbsp;&nbsp;</span><span style="background: white; color: red;">title</span><span style="background: white; color: blue;">=""</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: red;">value</span><span style="background: white; color: blue;">=""</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: blue;">/&gt;</span></p>
<p style="margin: 0in 0in 0in 1.125in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: blue;">&lt;/</span><span style="background: white; color: maroon;">body</span><span style="background: white; color: blue;">&gt;</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.75in; font-size: 11pt; font-weight: normal;">
<li value="2" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Add another javscript function </span></li>
</ol>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: blue;">function</span><span style="background: white; color: black;">&nbsp;SendClick(params)&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="background: white; color: blue;">var</span><span style="background: white; color: black;">&nbsp;element&nbsp;=&nbsp;document.getElementById(</span><span style="background: white; color: maroon;">"</span><span style="background: white; color: blue;">SpecificId</span><span style="background: white; color: maroon;">"</span><span style="background: white; color: black;">);<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<span style="mso-spacerun: yes;">&nbsp; </span>element.title&nbsp;=&nbsp;params;</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;"><span style="background: white;">&lt;!--This is the code which raises document click event on the hosted webbrowsercontrol--&gt;</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;"><span style="background: white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;element.click();<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.75in; font-size: 11pt; font-weight: normal;">
<li value="3" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">In XBAP invoke the JavaScript function using hostscript.</span></li>
</ol>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: blue;">if</span><span style="background: white; color: black;">&nbsp;(hostscript&nbsp;!=&nbsp;</span><span style="background: white; color: blue;">null</span><span style="background: white; color: black;">)<br />&nbsp;&nbsp;&nbsp;{<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;hostscript.SendClick(</span><span style="background: white; color: #a31515;">"Params</span><span style="background: white; color: black;">");<br />&nbsp;&nbsp;&nbsp;}</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.75in; font-size: 11pt; font-weight: normal;">
<li value="4" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">In your webbrowsercontrol,register for document click.</span></li>
</ol>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: black;">webbrowser1.Document.Click&nbsp;+=&nbsp;</span><span style="background: white; color: blue;">new</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: #2b91af;">HtmlElementEventHandler</span><span style="background: white; color: black;">(thisDocument_Click);</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;">&nbsp;</p>
<ol type="1" style="font-style: normal; margin-top: 0in; unicode-bidi: embed; font-family: Calibri; direction: ltr; margin-bottom: 0in; margin-left: 0.75in; font-size: 11pt; font-weight: normal;">
<li value="5" style="margin-top: 0px; margin-bottom: 0px; vertical-align: middle;"><span style="font-style: normal; font-family: Calibri; font-size: 11pt; font-weight: normal;">Now this document click would be raised by the Javascript with appropriate values in hidden fields.</span></li>
</ol>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">So, we can access the elements from the hidden fields like below in thisDocument_Click</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; font-size: 9.75pt;"><span style="background: white; color: blue;">private</span><span style="background: white; color: black;">&nbsp;</span><span style="background: white; color: blue;">void</span><span style="background: white; color: black;">&nbsp;thisDocument_Click(</span><span style="background: white; color: blue;">object</span><span style="background: white; color: black;">&nbsp;sender,&nbsp;</span><span style="background: white; color: #2b91af;">HtmlElementEventArgs</span><span style="background: white; color: black;">&nbsp;e)</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;"><span style="background: white;">{</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;"><span style="background: white;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="background: white; color: blue;"><span style="color: blue;">var</span>&nbsp;<span style="color: blue;">params</span>&nbsp;=&nbsp;webbrowser1.Document.GetElementById(<span style="color: #a31515;">"SpecificId"</span>).GetAttribute(<span style="color: #a31515;">"title"</span>);<br /></span>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;"><span style="background: white;">}</span></p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Consolas; color: black; font-size: 9.75pt;">&nbsp;</p>
<p style="margin: 0in 0in 0in 0.75in; font-family: Calibri; font-size: 11pt;">And then we can use params variable in our webbrowser control.&nbsp;</p>
</p>]]></content:encoded>
    </item>
    <item>
      <title>How to Enable/Disable WCF Tracing through code</title>
      <link>https://docs.microsoft.com/archive/blogs/anibakore/how-to-enabledisable-wcf-tracing-through-code</link>
      <pubDate>Mon, 15 Nov 2010 07:21:00 GMT</pubDate>
      <dc:creator><![CDATA[AnirudhB]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/anibakore/2010/11/15/how-to-enabledisable-wcf-tracing-through-code/</guid>
      <description><![CDATA[Recently I was working on logging WCF messages in our project. However, I found out that we cant...]]></description>
      <content:encoded><![CDATA[<p>Recently I was working on logging WCF messages in our project. However, I found out that we cant really enable/disable logging programatically or through code in the same appdomain as wcf service.We can see why <a title="here" href="https://social.msdn.microsoft.com/forums/en-US/wcf/thread/25b17fef-5660-499d-ad1b-aaa3b8ab7f60/">here</a>.</p>
<p><a title="This" href="https://social.msdn.microsoft.com/Forums/en/wcf/thread/c4d4ab6c-e438-4776-b0cb-4552a36b45b7">This</a>
 forum actually tells the solution of creating a different appdomain to 
log the traces or creating a config file dynamically and saving it as 
app.config.</p>
<p>My requirement was just to enable/disable the logging dynamically. So, I had no problems in having a config file as such but wanted to turn the flag enabletracing=false through the code.</p>
<p>My another requirement was that the log file generated should be readable by svctraceviewer. I also tried some examples where it is shown that if we override XMLWriterTraceListners methods Write and WriteLine.However, the trace file generated wasnt logging complete messages.</p>
<p>Below steps ensure how I achieved the above requirements. I feel this could be a common requirement in production environments where we need to switch on the tracing depending upon our common LoggingEnabled=True/False. This flag would indicate a general logging policy in the application and need not be specific to WCF tracing.</p>
<p>The solution is to create a custom listner which in its constructor actually decides whether to log in a file or not. Following are the steps to achieve the solution.</p>
<p>1.Create our normal WCF sources for logging in config file</p>
<p><!--[if gte mso 9]><xml>
 <o:officedocumentsettings>
  <o:allowpng />
 </o:officedocumentsettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:worddocument>
  <w:view>Normal</w:view>
  <w:zoom>0</w:zoom>
  <w:trackmoves />
  <w:trackformatting />
  <w:punctuationkerning />
  <w:validateagainstschemas />
  <w:saveifxmlinvalid>false</w:saveifxmlinvalid>
  <w:ignoremixedcontent>false</w:ignoremixedcontent>
  <w:alwaysshowplaceholdertext>false</w:alwaysshowplaceholdertext>
  <w:donotpromoteqf />
  <w:lidthemeother>EN-US</w:lidthemeother>
  <w:lidthemeasian>X-NONE</w:lidthemeasian>
  <w:lidthemecomplexscript>X-NONE</w:lidthemecomplexscript>
  <w:compatibility>
   <w:breakwrappedtables />
   <w:snaptogridincell />
   <w:wraptextwithpunct />
   <w:useasianbreakrules />
   <w:dontgrowautofit />
   <w:splitpgbreakandparamark />
   <w:enableopentypekerning />
   <w:dontflipmirrorindents />
   <w:overridetablestylehps />
  </w:compatibility>
  <m:mathpr>
   <m:mathfont m:val="Cambria Math" />
   <m:brkbin m:val="before" />
   <m:brkbinsub m:val="&#45;-" />
   <m:smallfrac m:val="off" />
   <m:dispdef />
   <m:lmargin m:val="0" />
   <m:rmargin m:val="0" />
   <m:defjc m:val="centerGroup" />
   <m:wrapindent m:val="1440" />
   <m:intlim m:val="subSup" />
   <m:narylim m:val="undOvr" />
  </m:mathpr></w:worddocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:latentstyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267">
  <w:lsdexception Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal" />
  <w:lsdexception Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 2" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 3" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 4" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 5" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 6" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 7" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 8" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 9" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 1" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 2" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 3" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 4" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 5" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 6" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 7" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 8" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 9" />
  <w:lsdexception Locked="false" Priority="35" QFormat="true" Name="caption" />
  <w:lsdexception Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title" />
  <w:lsdexception Locked="false" Priority="1" Name="Default Paragraph Font" />
  <w:lsdexception Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle" />
  <w:lsdexception Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong" />
  <w:lsdexception Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis" />
  <w:lsdexception Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid" />
  <w:lsdexception Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" />
  <w:lsdexception Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1" />
  <w:lsdexception Locked="false" UnhideWhenUsed="false" Name="Revision" />
  <w:lsdexception Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" />
  <w:lsdexception Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote" />
  <w:lsdexception Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6" />
  <w:lsdexception Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" />
  <w:lsdexception Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" />
  <w:lsdexception Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" />
  <w:lsdexception Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" />
  <w:lsdexception Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title" />
  <w:lsdexception Locked="false" Priority="37" Name="Bibliography" />
  <w:lsdexception Locked="false" Priority="39" QFormat="true" Name="TOC Heading" />
 </w:latentstyles>
</xml><![endif]--><!--[if gte mso 10]>
<mce:style><! 
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
-->
<!--[endif]-->
</!--[endif]--></!></mce:style></!--[if></![endif]--></!--[if></![endif]--></!--[if></![endif]--></!--[if></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&lt;?</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">xml</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">version</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">1.0</span>"<span style="color: blue;"> </span><span style="color: red;">encoding</span><span style="color: blue;">=</span>"<span style="color: blue;">utf-8</span>"<span style="color: blue;"> ?&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">configuration</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;
</span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">system.diagnostics</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">sources</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">source</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">System.ServiceModel</span>"<span style="color: blue;"> </span><span style="color: red;">switchValue</span><span style="color: blue;">=</span>"<span style="color: blue;">Warning,ActivityTracing</span>"<span style="color: blue;">&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">listeners</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">add</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">CustomListner</span>"<span style="color: blue;">/&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">listeners</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">source</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">source</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">System.ServiceModel.MessageLogging</span>"<span style="color: blue;"> </span><span style="color: red;">switchValue</span><span style="color: blue;">=</span>"<span style="color: blue;">Warning,
ActivityTracing</span>"<span style="color: blue;">&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">listeners</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">add</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">CustomListner</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">listeners</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">source</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">sources</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">sharedListeners</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">add</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp; </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">type</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">WCFTracing.CustomTraceListner,
WCFTracing, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">name</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">CustomListner</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">sharedListeners</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">trace</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">autoflush</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">true</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;
</span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">system.diagnostics</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;
</span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">system.serviceModel</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">diagnostics</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">messageLogging</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">logEntireMessage</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">true</span>"<span style="color: blue;"> </span><span style="color: red;">logKnownPii</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"<span style="color: blue;"> </span><span style="color: red;">logMalformedMessages</span><span style="color: blue;">=</span>"<span style="color: blue;">true</span>"</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span></span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">logMessagesAtServiceLevel</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">true</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>&lt;</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">endToEndTracing</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"> </span><span style="font-size: 9.5pt; font-family: Consolas; color: red;">activityTracing</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">=</span><span style="font-size: 9.5pt; font-family: Consolas;">"<span style="color: blue;">true</span>"<span style="color: blue;"> /&gt;</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">diagnostics</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;"><span>&nbsp;&nbsp;&nbsp;
</span>&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">system.serviceModel</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span><span style="font-size: 9.5pt; font-family: Consolas;"></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&lt;/</span><span style="font-size: 9.5pt; font-family: Consolas; color: #a31515;">configuration</span><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">&gt;</span></p>
<p>&nbsp;</p>
<p>2. Create a custom listner class which is mentioned in the config. Please note the function "CheckIfAllowed". This actually returns a memory stream&nbsp; in case logging is turned off. This ensures that the constructor doesn't fail and also no file is generated. Also, we are limiting buffer of memory stream to 2 bytes.And that's it. You can view the file using svctraceviewer conveniently.</p>
<p><!--[if gte mso 9]><xml>
 <o:officedocumentsettings>
  <o:allowpng />
 </o:officedocumentsettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:worddocument>
  <w:view>Normal</w:view>
  <w:zoom>0</w:zoom>
  <w:trackmoves />
  <w:trackformatting />
  <w:punctuationkerning />
  <w:validateagainstschemas />
  <w:saveifxmlinvalid>false</w:saveifxmlinvalid>
  <w:ignoremixedcontent>false</w:ignoremixedcontent>
  <w:alwaysshowplaceholdertext>false</w:alwaysshowplaceholdertext>
  <w:donotpromoteqf />
  <w:lidthemeother>EN-US</w:lidthemeother>
  <w:lidthemeasian>X-NONE</w:lidthemeasian>
  <w:lidthemecomplexscript>X-NONE</w:lidthemecomplexscript>
  <w:compatibility>
   <w:breakwrappedtables />
   <w:snaptogridincell />
   <w:wraptextwithpunct />
   <w:useasianbreakrules />
   <w:dontgrowautofit />
   <w:splitpgbreakandparamark />
   <w:enableopentypekerning />
   <w:dontflipmirrorindents />
   <w:overridetablestylehps />
  </w:compatibility>
  <m:mathpr>
   <m:mathfont m:val="Cambria Math" />
   <m:brkbin m:val="before" />
   <m:brkbinsub m:val="&#45;-" />
   <m:smallfrac m:val="off" />
   <m:dispdef />
   <m:lmargin m:val="0" />
   <m:rmargin m:val="0" />
   <m:defjc m:val="centerGroup" />
   <m:wrapindent m:val="1440" />
   <m:intlim m:val="subSup" />
   <m:narylim m:val="undOvr" />
  </m:mathpr></w:worddocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:latentstyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267">
  <w:lsdexception Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal" />
  <w:lsdexception Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 2" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 3" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 4" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 5" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 6" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 7" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 8" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 9" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 1" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 2" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 3" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 4" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 5" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 6" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 7" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 8" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 9" />
  <w:lsdexception Locked="false" Priority="35" QFormat="true" Name="caption" />
  <w:lsdexception Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title" />
  <w:lsdexception Locked="false" Priority="1" Name="Default Paragraph Font" />
  <w:lsdexception Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle" />
  <w:lsdexception Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong" />
  <w:lsdexception Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis" />
  <w:lsdexception Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid" />
  <w:lsdexception Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" />
  <w:lsdexception Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1" />
  <w:lsdexception Locked="false" UnhideWhenUsed="false" Name="Revision" />
  <w:lsdexception Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" />
  <w:lsdexception Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote" />
  <w:lsdexception Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6" />
  <w:lsdexception Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" />
  <w:lsdexception Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" />
  <w:lsdexception Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" />
  <w:lsdexception Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" />
  <w:lsdexception Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title" />
  <w:lsdexception Locked="false" Priority="37" Name="Bibliography" />
  <w:lsdexception Locked="false" Priority="39" QFormat="true" Name="TOC Heading" />
 </w:latentstyles>
</xml><![endif]--><!--[if gte mso 10]>
<mce:style><! 
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
-->
<!--[endif]-->
</!--[endif]--></!></mce:style></!--[if></![endif]--></!--[if></![endif]--></!--[if></![endif]--></!--[if></p>
<p><!--[if gte mso 9]><xml>
 <o:officedocumentsettings>
  <o:allowpng />
 </o:officedocumentsettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:worddocument>
  <w:view>Normal</w:view>
  <w:zoom>0</w:zoom>
  <w:trackmoves />
  <w:trackformatting />
  <w:punctuationkerning />
  <w:validateagainstschemas />
  <w:saveifxmlinvalid>false</w:saveifxmlinvalid>
  <w:ignoremixedcontent>false</w:ignoremixedcontent>
  <w:alwaysshowplaceholdertext>false</w:alwaysshowplaceholdertext>
  <w:donotpromoteqf />
  <w:lidthemeother>EN-US</w:lidthemeother>
  <w:lidthemeasian>X-NONE</w:lidthemeasian>
  <w:lidthemecomplexscript>X-NONE</w:lidthemecomplexscript>
  <w:compatibility>
   <w:breakwrappedtables />
   <w:snaptogridincell />
   <w:wraptextwithpunct />
   <w:useasianbreakrules />
   <w:dontgrowautofit />
   <w:splitpgbreakandparamark />
   <w:enableopentypekerning />
   <w:dontflipmirrorindents />
   <w:overridetablestylehps />
  </w:compatibility>
  <m:mathpr>
   <m:mathfont m:val="Cambria Math" />
   <m:brkbin m:val="before" />
   <m:brkbinsub m:val="&#45;-" />
   <m:smallfrac m:val="off" />
   <m:dispdef />
   <m:lmargin m:val="0" />
   <m:rmargin m:val="0" />
   <m:defjc m:val="centerGroup" />
   <m:wrapindent m:val="1440" />
   <m:intlim m:val="subSup" />
   <m:narylim m:val="undOvr" />
  </m:mathpr></w:worddocument>
</xml><![endif]--><!--[if gte mso 9]><xml>
 <w:latentstyles DefLockedState="false" DefUnhideWhenUsed="true"
  DefSemiHidden="true" DefQFormat="false" DefPriority="99"
  LatentStyleCount="267">
  <w:lsdexception Locked="false" Priority="0" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Normal" />
  <w:lsdexception Locked="false" Priority="9" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="heading 1" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 2" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 3" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 4" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 5" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 6" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 7" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 8" />
  <w:lsdexception Locked="false" Priority="9" QFormat="true" Name="heading 9" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 1" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 2" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 3" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 4" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 5" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 6" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 7" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 8" />
  <w:lsdexception Locked="false" Priority="39" Name="toc 9" />
  <w:lsdexception Locked="false" Priority="35" QFormat="true" Name="caption" />
  <w:lsdexception Locked="false" Priority="10" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Title" />
  <w:lsdexception Locked="false" Priority="1" Name="Default Paragraph Font" />
  <w:lsdexception Locked="false" Priority="11" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtitle" />
  <w:lsdexception Locked="false" Priority="22" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Strong" />
  <w:lsdexception Locked="false" Priority="20" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Emphasis" />
  <w:lsdexception Locked="false" Priority="59" SemiHidden="false"
   UnhideWhenUsed="false" Name="Table Grid" />
  <w:lsdexception Locked="false" UnhideWhenUsed="false" Name="Placeholder Text" />
  <w:lsdexception Locked="false" Priority="1" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="No Spacing" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 1" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 1" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 1" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 1" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 1" />
  <w:lsdexception Locked="false" UnhideWhenUsed="false" Name="Revision" />
  <w:lsdexception Locked="false" Priority="34" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="List Paragraph" />
  <w:lsdexception Locked="false" Priority="29" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Quote" />
  <w:lsdexception Locked="false" Priority="30" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Quote" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 1" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 1" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 1" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 1" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 1" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 1" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 1" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 2" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 2" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 2" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 2" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 2" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 2" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 2" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 2" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 2" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 2" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 3" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 3" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 3" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 3" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 3" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 3" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 3" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 3" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 3" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 3" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 4" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 4" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 4" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 4" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 4" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 4" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 4" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 4" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 4" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 4" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 5" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 5" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 5" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 5" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 5" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 5" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 5" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 5" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 5" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 5" />
  <w:lsdexception Locked="false" Priority="60" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Shading Accent 6" />
  <w:lsdexception Locked="false" Priority="61" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light List Accent 6" />
  <w:lsdexception Locked="false" Priority="62" SemiHidden="false"
   UnhideWhenUsed="false" Name="Light Grid Accent 6" />
  <w:lsdexception Locked="false" Priority="63" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="64" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Shading 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="65" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="66" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium List 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="67" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 1 Accent 6" />
  <w:lsdexception Locked="false" Priority="68" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 2 Accent 6" />
  <w:lsdexception Locked="false" Priority="69" SemiHidden="false"
   UnhideWhenUsed="false" Name="Medium Grid 3 Accent 6" />
  <w:lsdexception Locked="false" Priority="70" SemiHidden="false"
   UnhideWhenUsed="false" Name="Dark List Accent 6" />
  <w:lsdexception Locked="false" Priority="71" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Shading Accent 6" />
  <w:lsdexception Locked="false" Priority="72" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful List Accent 6" />
  <w:lsdexception Locked="false" Priority="73" SemiHidden="false"
   UnhideWhenUsed="false" Name="Colorful Grid Accent 6" />
  <w:lsdexception Locked="false" Priority="19" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Emphasis" />
  <w:lsdexception Locked="false" Priority="21" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Emphasis" />
  <w:lsdexception Locked="false" Priority="31" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Subtle Reference" />
  <w:lsdexception Locked="false" Priority="32" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Intense Reference" />
  <w:lsdexception Locked="false" Priority="33" SemiHidden="false"
   UnhideWhenUsed="false" QFormat="true" Name="Book Title" />
  <w:lsdexception Locked="false" Priority="37" Name="Bibliography" />
  <w:lsdexception Locked="false" Priority="39" QFormat="true" Name="TOC Heading" />
 </w:latentstyles>
</xml><![endif]--><!--[if gte mso 10]>
<mce:style><! 
 /* Style Definitions */
 table.MsoNormalTable
	{mso-style-name:"Table Normal";
	mso-tstyle-rowband-size:0;
	mso-tstyle-colband-size:0;
	mso-style-noshow:yes;
	mso-style-priority:99;
	mso-style-parent:"";
	mso-padding-alt:0in 5.4pt 0in 5.4pt;
	mso-para-margin-top:0in;
	mso-para-margin-right:0in;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0in;
	line-height:115%;
	mso-pagination:widow-orphan;
	font-size:11.0pt;
	font-family:"Calibri","sans-serif";
	mso-ascii-font-family:Calibri;
	mso-ascii-theme-font:minor-latin;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;
	mso-bidi-font-family:"Times New Roman";
	mso-bidi-theme-font:minor-bidi;}
-->
<!--[endif]-->
</!--[endif]--></!></mce:style></!--[if></![endif]--></!--[if></![endif]--></!--[if></![endif]--></!--[if></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas; color: blue;">public</span><span style="font-size: 9.5pt; font-family: Consolas;"> <span style="color: blue;">class</span> <span style="color: #2b91af;">CustomTraceListner</span> : <span style="color: #2b91af;">XmlWriterTraceListener</span></span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">public</span> CustomTraceListner()</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>:
<span style="color: blue;">base</span>(CheckIfAllowed())</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>{</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">private</span> <span style="color: blue;">static</span> <span style="color: #2b91af;">Stream</span> CheckIfAllowed()</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span>&nbsp;</span>{</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">bool</span> ifAllowed = <span style="color: blue;">true</span>;</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">if</span> (ifAllowed)</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
</span><span style="color: blue;">return</span> <span style="color: blue;">new</span>
<span style="color: #2b91af;">FileStream</span>(<span style="color: #a31515;">@"D:\temp.svclog"</span>,
<span style="color: #2b91af;">FileMode</span>.OpenOrCreate, <span style="color: #2b91af;">FileAccess</span>.Write);</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;">&nbsp;<span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: blue;">return</span> <span style="color: blue;">new</span> <span style="color: #2b91af;">MemoryStream</span>(2);</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal" style="margin-bottom: 0.0001pt; line-height: normal;"><span style="font-size: 9.5pt; font-family: Consolas;"><span>&nbsp;&nbsp;&nbsp; </span>}</span></p>
<p class="MsoNormal">&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>]]></content:encoded>
    </item>
    <item>
      <title>Taking advantage of VSTS Load Testing for WCF Services</title>
      <link>https://docs.microsoft.com/archive/blogs/anibakore/taking-advantage-of-vsts-load-testing-for-wcf-services</link>
      <pubDate>Thu, 09 Jul 2009 05:02:00 GMT</pubDate>
      <dc:creator><![CDATA[AnirudhB]]></dc:creator>
      <guid
        isPermaLink="false">https://blogs.msdn.microsoft.com/anibakore/2009/07/09/taking-advantage-of-vsts-load-testing-for-wcf-services/</guid>
      <description><![CDATA[In WCF&nbsp;services, it becomes extremely important to test...]]></description>
      <content:encoded><![CDATA[<FONT color=#0000ff><FONT color=#0000ff>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in"><FONT color=#000000>In WCF&nbsp;services, it becomes extremely important to test the&nbsp;configuration(Binding,Security,Instancing)&nbsp;and the actual implementation of the service are *optimum* for the expected and higher user loads.</FONT></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in"><FONT color=#000000>Though Load testing is a very common feature of VSTS,most of the WCF developers are unaware of it.</FONT></SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in"><FONT color=#000000>I found this load testing very useful and important in order to uncover any performance bottlenecks in the system. </FONT></SPAN></P>
<P><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in"><FONT color=#000000>Along with the user load testing, we can set Performance Counters on the server machines very easily and monitor few important counters. I am putting simple options to get Load testing for WCF running. However, there are various options by which we can configure Load Testing.</FONT></SPAN></P>
<P><FONT color=#000000 size=2 face=Arial>1. Create a WCF Service. Enable Performance Counters</FONT></P>
<P style="LINE-HEIGHT: normal; MARGIN-LEFT: 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&lt;</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #a31515; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">configuration</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&gt;<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p></SPAN></P>
<BLOCKQUOTE>
<P style="LINE-HEIGHT: normal; MARGIN-LEFT: 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&lt;</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #a31515; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">system.serviceModel</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&gt;<o:p></o:p></SPAN></P></BLOCKQUOTE>
<BLOCKQUOTE>
<P style="LINE-HEIGHT: normal; MARGIN-LEFT: 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #a31515; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">diagnostics</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in"> </SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: red; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">performanceCounters</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">=</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">"<SPAN style="COLOR: blue">All</SPAN>"<SPAN style="COLOR: blue"> /&gt;<o:p></o:p></SPAN></SPAN></P></BLOCKQUOTE>
<BLOCKQUOTE>
<P style="LINE-HEIGHT: normal; MARGIN-LEFT: 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&lt;/</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #a31515; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">system.serviceModel</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&gt;<o:p></o:p></SPAN></P></BLOCKQUOTE>
<P style="LINE-HEIGHT: normal; MARGIN-LEFT: 18pt; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto" class=MsoNormal><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&lt;/</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: #a31515; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">configuration</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; COLOR: blue; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">&gt;</SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in"><o:p></o:p></SPAN></P>
<P><FONT color=#000000 size=2 face=Arial>2. Add a Unit Test to a test Project</FONT></P>
<P><FONT color=#000000 size=2 face=Arial>3. Add Service Reference of the WCF service and make a simple call.Please do not forget to Close the proxy as not closing will lead to timeout exceptions at the client side.</FONT></P>
<BLOCKQUOTE>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 54pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes">[<SPAN style="COLOR: #2b91af">TestMethod</SPAN>]<o:p></o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 54pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">public</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"> <SPAN style="COLOR: blue">void</SPAN> TestMethod1()<o:p></o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 54pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes">{<o:p></o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 90pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: #2b91af; FONT-SIZE: 10pt; mso-no-proof: yes">ServiceClient</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"> client = <SPAN style="COLOR: blue">new</SPAN> <SPAN style="COLOR: #2b91af">ServiceClient</SPAN>();<o:p></o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 90pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; COLOR: blue; FONT-SIZE: 10pt; mso-no-proof: yes">string</SPAN><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes"> result=client.GetData(10);<o:p></o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 90pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes">client.Close();<o:p></o:p></SPAN></P>
<P style="LINE-HEIGHT: normal; MARGIN: 0cm 0cm 0pt 54pt; mso-layout-grid-align: none" class=MsoNormal><SPAN style="FONT-FAMILY: 'Courier New'; FONT-SIZE: 10pt; mso-no-proof: yes">}</SPAN></P></BLOCKQUOTE>
<P><FONT color=#000000><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: arial; mso-fareast-language: en-in"><SPAN style="mso-list: ignore"><SPAN style="FONT: 7pt 'Times New Roman'"><FONT size=2 face=Arial>4. </FONT></SPAN></SPAN></SPAN><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in">Add a Load test in a test Project. Following screen will appear</SPAN></FONT></P>
<P><FONT color=#000000><SPAN style="FONT-FAMILY: 'Arial','sans-serif'; FONT-SIZE: 10pt; mso-fareast-font-family: 'Times New Roman'; mso-fareast-language: en-in"></SPAN></FONT><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/AddNewLoadTest_2.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/AddNewLoadTest_2.png"><IMG style="BORDER-BOTTOM: 0px; BORDER-LEFT: 0px; DISPLAY: inline; BORDER-TOP: 0px; BORDER-RIGHT: 0px" title=AddNewLoadTest border=0 alt=AddNewLoadTest src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/AddNewLoadTest_thumb_2.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/AddNewLoadTest_thumb_2.png" width=381 height=321></A>&nbsp; </P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">5.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Choose default option of ”User normal distribution centered on recorded think times”, </FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">6.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Click Next</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">7.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Choose Constant User Load . It would be good for a WCF Service, we make constant user loads of 1,5,,50,100,200,400,800 and so on in order to get the breaking point where service is no&nbsp; longer able to handle the load.</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">8.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Choose default option of Based on Total Number of tests click Next</FONT></FONT></FONT></P>
<P><FONT size=2><FONT face=Arial><FONT color=#000000><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">9.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </SPAN></SPAN></SPAN>Add the above created Unit test to this Load Test</FONT><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shape style="WIDTH: 450.75pt; HEIGHT: 273pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_2 o:spid="_x0000_i1030" type="#_x0000_t75"><FONT color=#000000> <v:imagedata mce_src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png" src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image003.png" o:title="AddTestinLoad"></v:imagedata></FONT></v:shape></SPAN></FONT></FONT></P><FONT size=2><FONT face=Arial><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"></SPAN></FONT></FONT>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">10.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>Click Next for Computer Sets. We can monitor Performance Counters on the server itself. So just click next</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">11.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>Choose Run Settings as Warm up Duration 2 minutes,Run Duration as 10 minutes. You can change these settings in a property window later on. Click Finish</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">12.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>Load Test window will appear with all the chosen settings. Click on Run Settings and open Property Window. DONT FORGET TO MAKE “RUN UNIT TEST IN APPLICATION DOMAIN”=TRUE. It is false by default. The load test will not make use of config file if this is false and the test will throw errors.</FONT></FONT></FONT></P><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><o:p><FONT color=#000000 size=2 face=Arial>&nbsp;</FONT></o:p></SPAN> 
<P><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/runsettings2.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/runsettings2.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=runsettings2 border=0 alt=runsettings2 src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/runsettings2_thumb.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/runsettings2_thumb.png" width=439 height=299></A> </P><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><v:shape style="WIDTH: 451.5pt; HEIGHT: 257.25pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_3 o:spid="_x0000_i1029" type="#_x0000_t75"><v:imagedata mce_src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png" src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image005.png" o:title="RunSettings"><FONT color=#000000 size=2 face=Arial></FONT></v:imagedata></v:shape></SPAN>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">13.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>On Server Machines, Go to Start-&gt;Run-&gt;Perfmon. In The Data Collector Sets-&gt;User Defined,right click and select new.</FONT></FONT></FONT></P><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><FONT size=2 face=Arial>&nbsp;</FONT><v:shape style="WIDTH: 451.5pt; HEIGHT: 322.5pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_4 o:spid="_x0000_i1028" type="#_x0000_t75"><v:imagedata mce_src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image007.png" src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image007.png" o:title="DataCollectorSet"><FONT color=#000000 size=2 face=Arial></FONT></v:imagedata></v:shape></SPAN> 
<P><o:p><FONT color=#000000><FONT size=2 face=Arial>&nbsp;</FONT><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/DataCollectorSet2.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/DataCollectorSet2.png"><FONT size=2 face=Arial><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/DataCollectorSet2.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/DataCollectorSet2.png"><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=DataCollectorSet2 border=0 alt=DataCollectorSet2 src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/DataCollectorSet2_thumb.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/DataCollectorSet2_thumb.png" width=510 height=481></A></FONT></A><FONT size=2 face=Arial> </FONT></FONT></o:p></P>
<P><FONT size=2><FONT face=Arial><FONT color=#000000><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">14.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>Select recommended option of template and click next. In the right Window, Double click on Performance Counters. Add Performance Counters . </FONT><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><v:shape style="WIDTH: 451.5pt; HEIGHT: 424.5pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_5 o:spid="_x0000_i1027" type="#_x0000_t75"><v:imagedata mce_src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image009.png" src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image009.png" o:title="DataCollectorSet2"><FONT color=#000000></FONT></v:imagedata></v:shape></SPAN></FONT></FONT></P><FONT size=2><FONT face=Arial><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"></SPAN></FONT></FONT>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">15.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>For WCF Related Performance Counters such as Request per second or Calls per second,</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial>Click on ServiceModelOperation 3.0.0.0 Category. In the Bottom Window <B style="mso-bidi-font-weight: normal">*Select instance of your service*<o:p></o:p></B></FONT></FONT></FONT></P><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><FONT size=2 face=Arial>&nbsp;</FONT><v:shape style="WIDTH: 244.5pt; HEIGHT: 99.75pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_6 o:spid="_x0000_i1026" type="#_x0000_t75"><v:imagedata mce_src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image011.png" src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image011.png" o:title=""><FONT color=#000000 size=2 face=Arial></FONT></v:imagedata></v:shape></SPAN> 
<P><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/PerfCat_2.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/PerfCat_2.png"><FONT size=2 face=Arial><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=PerfCat border=0 alt=PerfCat src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/PerfCat_thumb.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/PerfCat_thumb.png" width=244 height=104></FONT></A><FONT size=2 face=Arial> </FONT></P><o:p><FONT color=#000000 size=2 face=Arial>&nbsp;</FONT></o:p><o:p><FONT color=#000000 size=2 face=Arial>&nbsp;</FONT></o:p><o:p><FONT color=#000000 size=2 face=Arial>&nbsp;</FONT></o:p><o:p><FONT color=#000000 size=2 face=Arial>&nbsp;</FONT></o:p> 
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">16.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>After Adding all the Performance Counters, right click on data collector set and select properties. </FONT></FONT></FONT></P>
<P><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><FONT size=2 face=Arial>&nbsp;</FONT><A href="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/StopCondition_2.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/StopCondition_2.png"><FONT size=2 face=Arial><IMG style="BORDER-RIGHT-WIDTH: 0px; DISPLAY: inline; BORDER-TOP-WIDTH: 0px; BORDER-BOTTOM-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px" title=StopCondition border=0 alt=StopCondition src="https://msdnshared.blob.core.windows.net/media/TNBlogsFS/BlogFileStorage/blogs_msdn/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/StopCondition_thumb.png" original-url="https://blogs.msdn.com/blogfiles/anibakore/WindowsLiveWriter/TakingadvantageofVSTSLoadTestingforWCFSe_101E3/StopCondition_thumb.png" width=216 height=244></FONT></A><FONT size=2 face=Arial> </FONT></SPAN></P><SPAN style="mso-fareast-language: en-in; mso-no-proof: yes"><v:shape style="WIDTH: 309.75pt; HEIGHT: 351pt; VISIBILITY: visible; mso-wrap-style: square" id=Picture_x0020_9 o:spid="_x0000_i1025" type="#_x0000_t75"><v:imagedata mce_src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image013.png" src="file:///C:\Users\banirud\AppData\Local\Temp\msohtmlclip1\01\clip_image013.png" o:title=""><FONT color=#000000 size=2 face=Arial></FONT></v:imagedata></v:shape></SPAN>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">17.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>Click on Stop Condition tab and give duration for which you want to run this data collector set. Now as soon as you will click on start this collector set, logging will be started. And it would be stopped after specified minutes.</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">18.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>So, give sufficient time in stop condition to capture the entire run of your load test. (So give duration=Load test Duration + some time say 1 minute)</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore">19.<SPAN style="FONT: 7pt 'Times New Roman'">&nbsp;&nbsp; </SPAN></SPAN></SPAN>Start the Data Collector set. Start the load test.</FONT></FONT></FONT></P>
<P><FONT color=#000000><FONT size=2><FONT face=Arial>Now this is one time activity. For all the next runs with different user loads, you just need to start and stop data collector set+Load test.</FONT></FONT></FONT><FONT color=#000000><FONT size=2><FONT face=Arial><SPAN style="mso-bidi-font-family: calibri; mso-bidi-theme-font: minor-latin"><SPAN style="mso-list: ignore"><SPAN style="FONT: 7pt 'Times New Roman'">&nbsp; </SPAN></SPAN></SPAN>With all the values logged at the server side, you can easily find out bottleneck in the system for higher loads.</FONT></FONT></FONT></P>
<BLOCKQUOTE>
<BLOCKQUOTE><o:p><FONT color=#000000 size=2 face=Arial>&nbsp;</FONT></o:p><FONT size=2 face=Arial>&nbsp;</FONT></BLOCKQUOTE></BLOCKQUOTE><FONT color=#0000ff><FONT color=#0000ff></FONT></FONT><FONT color=#0000ff><FONT color=#0000ff><FONT size=2 face=Arial>&nbsp;</FONT></FONT></FONT><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT><FONT size=2 face=Arial></FONT></FONT></FONT>]]></content:encoded>
    </item>
  </channel>
</rss>