<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:copyright="http://blogs.law.harvard.edu/tech/rss" xmlns:image="http://purl.org/rss/1.0/modules/image/">
    <channel>
        <title>.NET</title>
        <link>http://blogs.ugidotnet.org/spezzani/category/.NET.aspx</link>
        <description>.NET</description>
        <language>it-IT</language>
        <copyright>Manuel Spezzani</copyright>
        <generator>Subtext Version 2.6.0.0</generator>
        <item>
            <title>Team Foundation Service &amp;ndash; Lanciare i test con NUnit</title>
            <link>http://blogs.ugidotnet.org/spezzani/archive/2012/11/29/team-foundation-service-ndash-lanciare-i-test-con-nunit.aspx</link>
            <description>Team Foundation Service è il fratellino on-the-cloud di TFS 2012: mette a disposizione gran parte delle feature del TFS “vero” (source control, workitems, planning tools, feedback management…) senza la necessità di dover gestire una architettura on-premise.  Ed è gratuito fino a 5 utenti.  Una delle feature che mi hanno convinto a provarlo – esistono tanti altri sistemi simili, GitHub in primis – è la possibilità di sfruttare un sistema di Continuous Integration hostato sul cloud.  Ve lo trovate nel TeamExplorer alla voce “Builds” (guarda caso la stessa di TFS 2012).       A partire dal template standard in pochi click è possibile creare una nuova build che compila una solution e lancia i relativi test.      E finalmente arriviamo al titolo del post…     L’inghippo è che i test vengono lanciati utilizzando il test runner di Visual Studio che, di default, supporta solamente il framework di test di Microsoft: come si fa se abbiamo test scritti con NUnit o xUnit?  Nel Visual Studio “locale” la risposta è semplice: basta scaricare un adapter per il nostro framework di test e il gioco è fatto. Ad esempio qua trovate l’adapter per NUnit.     Una cosa simile è fattibile anche su TFService, ma la procedura è leggermente più complicata. Occorre infatti:     Scaricare il .vsix dell’adapter per il framework di unit test, rinominarlo in .zip e scompattarlo;    Fare checkin in TFService delle DLL contenute nel .vsix;    Dal Team Explorer di Visual Studio andare su Builds –&amp;gt; Actions –&amp;gt; “Manage Build Controllers…”;        Nelle proprietà dell’Hosted Build Controller valorizzare il campo “Version control path to custom assemblies” con il path delle DLL appena checkinate        That’s it! Rilanciate la build e TFService lancerà i vostri test NUnit!     Che dire…    Build Services è ancora in fase di preview quindi certi spigoli sono assolutamente giustificabili, speriamo che nella versione definitiva vengano semplificati anche questi aspetti!&lt;img src="http://blogs.ugidotnet.org/spezzani/aggbug/101350.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Manuel Spezzani</dc:creator>
            <guid>http://blogs.ugidotnet.org/spezzani/archive/2012/11/29/team-foundation-service-ndash-lanciare-i-test-con-nunit.aspx</guid>
            <pubDate>Thu, 29 Nov 2012 21:25:58 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/spezzani/archive/2012/11/29/team-foundation-service-ndash-lanciare-i-test-con-nunit.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/spezzani/comments/commentRss/101350.aspx</wfw:commentRss>
        </item>
        <item>
            <title>WCF e il throttling</title>
            <link>http://blogs.ugidotnet.org/spezzani/archive/2009/07/20/wcf-e-il-throttling.aspx</link>
            <description>Me lo segno a futura memoria, visto che c'ho sbattuto il muso proprio oggi...

In WCF il throttling è abilitato di default per "contenere" l'uso di risorse dell'host e per questioni di sicurezza (es. limitare l'impatto sul server di un attacco DoS).
Per modificarne le impostazioni basta aggiungere il serviceThrottling behavior alla configurazione del servizio:




 
  Normal
  0
  
  
  14
  
  
  false
  false
  false
  
  IT
  X-NONE
  X-NONE
  
   
   
   
   
   
   
   
   
   
   
   
  
  MicrosoftInternetExplorer4
  
   
   
   
   
   
   
   
   
   
   
   
  

 
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
 


 /* 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-qformat:yes;
	mso-style-parent:"";
	mso-padding-alt:0cm 5.4pt 0cm 5.4pt;
	mso-para-margin-top:0cm;
	mso-para-margin-right:0cm;
	mso-para-margin-bottom:10.0pt;
	mso-para-margin-left:0cm;
	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-fareast-font-family:"Times New Roman";
	mso-fareast-theme-font:minor-fareast;
	mso-hansi-font-family:Calibri;
	mso-hansi-theme-font:minor-latin;}


 

 
  
 
&amp;lt;behavior name="ThrottlingBehavior"&amp;gt;
 &amp;lt;serviceThrottling maxConcurrentCalls="100" maxConcurrentSessions="100" maxConcurrentInstances="100" /&amp;gt;
&amp;lt;/behavior&amp;gt;
I valori di default sono:

    MaxConcurrentCalls = 16
    MaxConcurrentInstances = 26
     MaxConcurrentSessions = 10


Se il tracing è attivato è abbastanza semplice diagnosticare problemi legati alla configurazione del throttling: ogni volta che viene raggiunta una delle soglie il runtime logga un warning (la prima volta) o un errore.&lt;img src="http://blogs.ugidotnet.org/spezzani/aggbug/96734.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Manuel Spezzani</dc:creator>
            <guid>http://blogs.ugidotnet.org/spezzani/archive/2009/07/20/wcf-e-il-throttling.aspx</guid>
            <pubDate>Mon, 20 Jul 2009 15:48:08 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/spezzani/archive/2009/07/20/wcf-e-il-throttling.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/spezzani/comments/commentRss/96734.aspx</wfw:commentRss>
        </item>
        <item>
            <title>[70-561] Microsoft Sync Framework</title>
            <link>http://blogs.ugidotnet.org/spezzani/archive/2009/07/02/70-561-microsoft-sync-framework.aspx</link>
            <description>"Microsoft Sync Framework è una piattaforma di sincronizzazione completa che consente la collaborazione e l'accesso non in linea per applicazioni, servizi e dispositivi." (cit.).

Di suo include tre provider:

    Sync Services for ADO.NET, to synchronize ADO.NET data
    
    Sync Services for File Systems, to synchronize files and directory structures
    Sync Services for FeedSync, to synchronize RSS/ATOM feeds

Purtroppo il training kit ne parla molto poco (e quel poco riguarda solo il provider ADO.NET), è quindi una delle cose da guardare meglio anche in vista dell'esame...&lt;img src="http://blogs.ugidotnet.org/spezzani/aggbug/96584.aspx" width="1" height="1" /&gt;</description>
            <dc:creator>Manuel Spezzani</dc:creator>
            <guid>http://blogs.ugidotnet.org/spezzani/archive/2009/07/02/70-561-microsoft-sync-framework.aspx</guid>
            <pubDate>Thu, 02 Jul 2009 12:38:23 GMT</pubDate>
            <comments>http://blogs.ugidotnet.org/spezzani/archive/2009/07/02/70-561-microsoft-sync-framework.aspx#feedback</comments>
            <wfw:commentRss>http://blogs.ugidotnet.org/spezzani/comments/commentRss/96584.aspx</wfw:commentRss>
        </item>
    </channel>
</rss>