{"id":273734,"date":"2016-02-07T11:46:02","date_gmt":"2016-02-07T08:46:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=273734"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=273734","title":{"rendered":"\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Microsoft Orleans \u0441 \u043f\u043e\u043c\u043e\u0449\u044c\u044e PVS-Studio"},"content":{"rendered":"<br \/>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a.<\/p>\n<p>  \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 Disclaimer \u0434\u043b\u044f \u0441\u043e\u043c\u043d\u0435\u0432\u0430\u044e\u0449\u0438\u0445\u0441\u044f: \u0434\u0430, \u0437\u0430 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u044f, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u043b\u0443\u0447\u0443 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u043d\u0430 PVS-Studio \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Microsoft Orleans. \u0410 \u043c\u043e\u0436\u0435\u0442 \u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0443, \u043a\u0430\u043a \u0444\u0438\u0448\u043a\u0430 \u043b\u044f\u0436\u0435\u0442-\u0441. \u041d\u0435\u0442, \u0441 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 &quot;\u0421\u0438\u041f\u0440\u043e\u0412\u0435\u0440&quot; \u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u0438\u0432\u0435.<\/p>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0441\u0443\u0442\u0438.<\/p>\n<p>  <a href=\"http:\/\/www.viva64.com\/ru\/pvs-studio\/\">PVS-Studio 6.0<\/a>, \u043a\u0430\u043a \u0437\u0430\u044f\u0432\u043b\u044f\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0438\u0441\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430. <\/p>\n<p>  \u0418 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u043e, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0437\u0430\u0440\u0435\u043b\u0438\u0437\u0438\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044e, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 C# \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u0427\u0435\u043c \u043c\u044b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 Microsoft Orleans.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 PVS-Studio \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 Orleans \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043d\u043e \u044f \u0438\u0445 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0435\u0434\u0438\u043b \u0438 \u043e\u043d\u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043c\u043d\u0435 \u0441\u0432\u043e\u044e \u041a\u0414\u041f\u0412 (&quot;\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f&quot;) \u0441 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0434\u0443\u044e\u0449\u0438\u043c \u0435\u0434\u0438\u043d\u043e\u0440\u043e\u0433\u043e\u043c. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/centur.github.io\/article_images\/PVS-Orleans\/OrleansAndPVS.png\" alt=\"PVS-Unicorn-In-Clouds\"\/><\/p>\n<p>  <a name=\"habracut\"><\/a>  <\/p>\n<hr\/>\n<p>  <\/p>\n<h2>\u0427\u0442\u043e \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u043e\u0435\u043a\u0442 Orleans, \u0412\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0435 \u0430\u043a\u0442\u0435\u0440\u044b \u0438 \u0432 \u0447\u0435\u043c \u0438\u0445 \u043f\u0440\u043e\u0444\u0438\u0442.<\/h2>\n<p>  <img decoding=\"async\" src=\"https:\/\/raw.githubusercontent.com\/dotnet\/orleans\/gh-pages\/Icons\/Orleans\/OrleansSDK_128x.png\" alt=\"Microsoft Orleans logo\" title=\"Logo Title Text 2\"\/><\/p>\n<p>  <a href=\"https:\/\/github.com\/dotnet\/orleans\">Microsoft Orleans<\/a> \u044d\u0442\u043e framework, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043f\u043e\u0441\u0442\u0440\u043e\u0435\u043d \u043d\u0430 \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u043a\u0442\u0435\u0440\u043e\u0432. \u0422\u0435\u0440\u043c\u0438\u043d\u043e\u043b\u043e\u0433\u0438\u044f Orleans \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a\u043e\u0432 (Akka.Net, Service Fabric, Erlang Actors): \u0410\u043a\u0442\u0435\u0440\u044b \u043d\u0430\u0437\u044b\u0432\u0430\u044e\u0442\u0441\u044f <strong>Grains<\/strong> (\u0430\u043a\u0430 \u0437\u0435\u0440\u043d\u0430), \u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0430, \u0443\u0447\u0430\u0441\u0442\u0432\u0443\u044e\u0449\u0438\u0435 \u0432 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0435 \u2014 <strong>Silo<\/strong>.<\/p>\n<p>  \u041f\u0440\u0435\u0438\u043c\u0443\u0449\u0435\u0441\u0442\u0432\u043e \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u043a\u0442\u0435\u0440\u043e\u0432 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u0432 \u043b\u044e\u0431\u043e\u0439 \u043c\u043e\u043c\u0435\u043d\u0442 \u0432\u0430\u0448 \u043a\u043e\u0434 \u043c\u043e\u0436\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0443 Orleans Runtime \u043f\u0440\u043e\u043a\u0441\u0438 \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0449\u0435\u043d\u0438\u044f \u043a \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e\u043c\u0443 Grain \u043f\u043e \u0435\u0433\u043e \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0443 \u0438 Id. \u041f\u0440\u0438 \u0432\u044b\u0437\u043e\u0432\u0435 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 \u043f\u0440\u043e\u043a\u0441\u0438 \u043f\u043e\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0435 \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0443 \u0438\u0437 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u0438\u0445 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432, \u0433\u0434\u0435 \u043e\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043e\u043c\u0443 Grain-\u0443 \u0441 \u0437\u0430\u0434\u0430\u043d\u043d\u044b\u043c Id. Runtime \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442, \u0447\u0442\u043e \u0442\u0430\u043a\u043e\u0439 Grain \u0431\u0443\u0434\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u043d \u0432 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u043c \u044d\u043a\u0437\u0435\u043c\u043f\u043b\u044f\u0440\u0435 \u043d\u0430 \u043e\u0434\u043d\u043e\u043c \u0438\u0437 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u0432 \u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u044b\u0437\u043e\u0432\u044b \u0431\u0443\u0434\u0443\u0442 \u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0435\u043c\u0443. Runtime \u0442\u0430\u043a\u0436\u0435 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0443\u0434\u0430\u043b\u044f\u0435\u0442 \u0438\u0437 \u043f\u0430\u043c\u044f\u0442\u0438 (\u0434\u0435\u0430\u043a\u0442\u0438\u0432\u0438\u0440\u0443\u0435\u0442) Grain-\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0430\u043b\u0438 \u0432\u044b\u0437\u043e\u0432\u043e\u0432 \u0437\u0430\u0434\u0430\u043d\u043d\u043e\u0435 \u0432\u0440\u0435\u043c\u044f, \u0442\u0430\u043a\u0438\u043c \u043e\u0431\u0440\u0430\u0437\u043e\u043c \u043f\u043e\u0441\u0442\u043e\u044f\u043d\u043d\u043e \u0441\u043e\u0431\u0438\u0440\u0430\u044f &quot;\u043c\u0443\u0441\u043e\u0440&quot;. \u0415\u0441\u043b\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u043e\u0441\u044c \u0440\u0430\u043d\u0435\u0435 \u0432\u0430\u0448\u0435 &quot;\u0437\u0435\u0440\u043d\u043e&quot;, \u0443\u0448\u0435\u043b \u0432 \u043e\u0444\u0444\u043b\u0430\u0439\u043d \u2014 Runtime \u0431\u044b\u0441\u0442\u0440\u043e \u043f\u043e\u0434\u043d\u0438\u043c\u0435\u0442 \u0438\u043d\u0441\u0442\u0430\u043d\u0441 \u043d\u0430 \u0434\u0440\u0443\u0433\u043e\u043c \u0438 \u0432\u044b \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0437\u0430\u043c\u0435\u0442\u0438\u0442\u0435, \u043a\u0440\u043e\u043c\u0435 \u043d\u0435\u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0437\u0430\u0434\u0435\u0440\u0436\u043a\u0438. \u0415\u0441\u043b\u0438 \u0432\u044b\u0437\u043e\u0432 \u0434\u043e\u043b\u0436\u0435\u043d \u043f\u0440\u0438\u0439\u0442\u0438 \u043d\u0430 \u0442\u043e\u0442 \u0436\u0435 \u0441\u0430\u043c\u044b\u0439 \u0441\u0435\u0440\u0432\u0435\u0440 \u2014 Runtime \u044d\u0442\u043e \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u0438 \u0432\u044b\u0437\u043e\u0432 \u0431\u0443\u0434\u0435\u0442 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u043c.<\/p>\n<p>  \u0421\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u043f\u0440\u043e\u0444\u0438\u0442 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u044b\u0445 \u0430\u043a\u0442\u0435\u0440\u043e\u0432 \u0432 \u0442\u043e\u043c, \u0447\u0442\u043e \u044d\u0442\u043e \u0432\u0441\u0435 \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u0438\u0440\u0443\u0435\u0442\u0441\u044f \u0432 \u043e\u0431\u043b\u0430\u043a\u0430\u0445:<br \/>  Silo \u043f\u0438\u043d\u0433\u0443\u044e\u0442 \u0434\u0440\u0443\u0433 \u0434\u0440\u0443\u0433\u0430 \u0438 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u043a\u043e\u0433\u0434\u0430 \u043a\u0442\u043e-\u0442\u043e \u043d\u0435\u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043f\u0435\u0440\u0435\u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u044f\u044e\u0442 \u0437\u0435\u0440\u043d\u0430 &quot;\u043f\u0430\u0432\u0448\u0435\u0433\u043e \u043a\u0430\u043c\u0440\u0430\u0434\u0430&quot; \u043c\u0435\u0436\u0434\u0443 \u0441\u043e\u0431\u043e\u0439 \u0438 \u0432\u0441\u0435 \u0442\u0430\u043a\u043e\u0435. \u041a\u043b\u0430\u0441\u0442\u0435\u0440 \u0440\u0430\u0434\u043e\u0441\u0442\u043d\u043e \u0436\u0438\u0432\u0435\u0442 \u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d, \u043f\u043e\u043a\u0430 \u0435\u0441\u0442\u044c \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0434\u043d\u043e \u0430\u043a\u0442\u0438\u0432\u043d\u043e\u0435 Silo, \u0438 \u043f\u0440\u0438 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0438 \u043d\u043e\u0432\u044b\u0445 \u0443\u0447\u0430\u0441\u0442\u043d\u0438\u043a\u043e\u0432 \u2014 \u043e\u043d\u0438 \u043f\u043e\u043b\u0443\u0447\u0430\u0442 \u0441\u0432\u043e\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d &quot;\u0437\u0435\u0440\u0435\u043d&quot; \u0438 \u043d\u0430\u0447\u043d\u0443\u0442 \u0430\u043a\u0442\u0438\u0432\u043d\u043e \u043e\u0431\u0440\u0430\u0431\u0430\u0442\u044b\u0432\u0430\u0442\u044c \u0437\u0430\u043f\u0440\u043e\u0441\u044b. \u0410 \u0441\u0432\u043e\u0439 \u043a\u043e\u0434 \u0432\u044b \u043f\u0438\u0448\u0438\u0442\u0435, \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044f \u043f\u0440\u0438\u0432\u044b\u0447\u043d\u044b\u0439 \u041e\u041e\u041f-\u043f\u043e\u0434\u0445\u043e\u0434. \u041f\u043e\u043b\u0443\u0447\u0430\u0435\u0442\u0441\u044f \u0442\u0430\u043a\u043e\u0439, \u043a\u0430\u043a \u0431\u044b &quot;Distributed C#\/.NET&quot;.<\/p>\n<p>  \u0415\u0449\u0435 \u0441\u0430\u043c \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0434\u0430\u0435\u0442 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438 \u0447\u0442\u043e \u043f\u0440\u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0438 \u043c\u0435\u0442\u043e\u0434\u0430 \u043d\u0430 \u0437\u0435\u0440\u043d\u0435, \u043d\u0438\u043a\u0430\u043a\u043e\u0439 \u0434\u0440\u0443\u0433\u043e\u0439 \u0432\u044b\u0437\u043e\u0432 \u043d\u0435 \u043d\u0430 \u0442\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435 \u0437\u0435\u0440\u043d\u043e \u043d\u0435 \u043f\u0440\u0438\u0439\u0434\u0435\u0442, \u0442.\u0435. \u0440\u0430\u043d\u0442\u0430\u0439\u043c \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u0443\u0435\u0442 single-threaded \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 \u0432\u0430\u0448\u0435\u0433\u043e \u043a\u043e\u0434\u0430, \u0447\u0442\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043c\u0435\u043d\u044c\u0448\u0435 \u0434\u0443\u043c\u0430\u0442\u044c \u043e \u0432\u0441\u044f\u043a\u0438\u0445 \u043d\u0435-thread-safe \u0441\u0438\u0442\u0443\u0430\u0446\u0438\u044f\u0445 \u0438 \u0431\u043e\u043b\u044c\u0448\u0435 \u0441\u043e\u0441\u0440\u0435\u0434\u043e\u0442\u043e\u0447\u0438\u0442\u044c\u0441\u044f \u043d\u0430 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u043f\u043e\u043b\u0435\u0437\u043d\u043e\u0439 \u0431\u0438\u0437\u043d\u0435\u0441-\u043b\u043e\u0433\u0438\u043a\u0438.<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435, \u0442\u0430\u043c \u0435\u0449\u0435 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u044b\u0445 \u0432\u0435\u0449\u0435\u0439, \u0442\u0430\u043a\u0438\u0445 \u043a\u0430\u043a \u0437\u0430\u043c\u0435\u043d\u044f\u0435\u043c\u044b\u0435 \u043f\u0440\u043e\u0432\u0430\u0439\u0434\u0435\u0440\u044b \u0445\u0440\u0430\u043d\u0438\u043b\u0438\u0449\u0430, messaging, pub-sub \u0438 \u0434\u0440\u0443\u0433\u0438\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u044b\u0435 \u0432\u0435\u0449\u0438 \u0434\u043b\u044f \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0439 \u043f\u043e\u0434 \u043e\u0431\u043b\u0430\u0447\u043d\u044b\u0435 (\u0438\u043b\u0438 \u0440\u0430\u0441\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u044b\u0435 on-prem) \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b.<br \/>  \u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0439 \u0441 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u043c \u043c\u043e\u0436\u043d\u043e \u043e\u0437\u043d\u0430\u043a\u043e\u043c\u0438\u0442\u044c\u0441\u044f \u0437\u0434\u0435\u0441\u044c \u2014 <a href=\"http:\/\/dotnet.github.io\/orleans\/\">Microsoft Orleans@GitHub<\/a>. Microsoft Orleans \u043d\u0435\u043f\u043b\u043e\u0445\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d \u0438 \u0432 \u043c\u0430\u0441\u0448\u0442\u0430\u0431\u043d\u044b\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u2014 \u044d\u0442\u043e\u0442 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u043d\u0430 \u0431\u0430\u043a\u0435\u043d\u0434\u0435 \u0438\u0433\u0440 Halo 4 \u0438 Halo 5 \u2014 \u0441\u043e\u0431\u0438\u0440\u0430\u0435\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044e \u043e \u0432\u0441\u0435\u0445 \u0438\u0433\u0440\u0430\u0445, \u0430\u0433\u0433\u0440\u0435\u0433\u0438\u0440\u0443\u0435\u0442 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0443 \u0438 \u0442.\u0434.<\/p>\n<hr\/>\n<p>  <\/p>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 \u0437\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c Orleans<\/h2>\n<p>  \u041d\u0443 \u0432\u043e-\u043f\u0435\u0440\u0432\u044b\u0445, \u043c\u044b \u0441\u0430\u043c\u0438 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c Orleans \u0434\u043b\u044f \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u044f \u043d\u0430\u0448\u0435\u0439 \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u0439 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b \u0432 Drawboard \u0438 \u0445\u043e\u0447\u0435\u0442\u0441\u044f \u043f\u043e\u043b\u0430\u0433\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0443\u0434\u043e\u0431\u043d\u044b\u0439 \u0438 \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u0439 \u0444\u0440\u0435\u0439\u043c\u0432\u043e\u0440\u043a.<\/p>\n<p>  \u0412\u043e-\u0432\u0442\u043e\u0440\u044b\u0445, \u043a\u043e\u043d\u0446\u0435\u043f\u0446\u0438\u0438 \u0438 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0438, \u0437\u0430\u043b\u043e\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 Orleans, \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u0442\u0440\u0438\u0432\u0438\u0430\u043b\u044c\u043d\u044b \u0438 \u043e\u0442 \u0438\u0445 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u0440\u0430\u0431\u043e\u0442\u044b \u043a\u043b\u0430\u0441\u0442\u0435\u0440\u0430.<\/p>\n<p>  \u0412-\u0442\u0440\u0435\u0442\u044c\u0438\u0445 \u2014 \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c PVS-Studio \u0441 \u0421# \u2014 \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u043f\u0440\u043e\u0434\u0443\u043a\u0442\u0430 \u043f\u0438\u0448\u0435\u0442 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0435 \u0441\u0442\u0430\u0442\u044c\u0438 \u043f\u0440\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 \u0421++ \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0430 \u0432\u043e\u0442 C# \u0431\u044b\u043b \u043a\u0430\u043a-\u0442\u043e \u043e\u0431\u0434\u0435\u043b\u0435\u043d \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435\u043c \u0434\u043e \u043f\u043e\u0441\u043b\u0435\u0434\u043d\u0435\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438.<\/p>\n<hr\/>\n<p>  <\/p>\n<h2>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u044b \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438<\/h2>\n<p>  \u041f\u0440\u043e\u0435\u043a\u0442 Microsoft Orleans \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u043d\u043e \u0438, \u043e\u0447\u0435\u0432\u0438\u0434\u043d\u043e, \u0440\u0430\u0437\u043e\u0432\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0445\u043e\u0442\u044c \u0438 \u043f\u043e\u043c\u043e\u0436\u0435\u0442 \u043d\u0430\u0439\u0442\u0438 \u0441\u043e\u043c\u043d\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043c\u0435\u0441\u0442\u0430 \u2014 \u0432 \u0434\u043b\u0438\u043d\u043d\u043e\u0439 \u043f\u0435\u0440\u0441\u043f\u0435\u043a\u0442\u0438\u0432\u0435 \u043d\u0430 \u043e\u0431\u0449\u0435\u0435 \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0432\u043b\u0438\u044f\u0435\u0442 \u043d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e.<\/p>\n<p>  \u0418\u0442\u0430\u043a, \u043f\u043e \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044e \u043d\u0430 \u043c\u043e\u043c\u0435\u043d\u0442 \u043c\u0435\u0440\u0436\u0430 PR #1288 <code>4\/02\/2016 2:43:26 PM, Commit hash: 7c1e35466fde08fcf1c2caf64fa304d25e60e045<\/code> PVS-Studio (\u0432\u0435\u0440\u0441\u0438\u044f 6.01.15638.1) \u0432\u044b\u0434\u0430\u043b\u0430: <\/p>\n<ul>\n<li>18 High-severity \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439<\/li>\n<li>7 Medium-severity \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439<\/li>\n<li>58 Low-severity \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439<\/li>\n<\/ul>\n<p>  \u0422\u0440\u0443\u0434\u043d\u043e \u0441\u043a\u0430\u0437\u0430\u0442\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u044d\u0442\u043e \u0438\u043b\u0438 \u043f\u043b\u043e\u0445\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u043a\u0430\u043a \u044d\u0442\u043e \u043d\u0435\u043b\u044c\u0437\u044f \u0441\u0440\u0430\u0432\u043d\u0438\u0432\u0430\u0442\u044c \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c\u0438, \u043f\u0440\u043e\u0432\u0435\u0440\u0435\u043d\u043d\u044b\u043c\u0438 PVS-Studio \u2014 \u0440\u0430\u0437\u043d\u0430\u044f \u0441\u043b\u043e\u0436\u043d\u043e\u0441\u0442\u044c, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043a\u043e\u0434\u0430, \u043a\u043e\u043c\u043f\u0435\u0442\u0435\u043d\u0442\u043d\u043e\u0441\u0442\u044c \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u043e\u0432 \u0438 \u043c\u043d\u043e\u0436\u0435\u0441\u0442\u0432\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u0444\u0430\u043a\u0442\u043e\u0440\u043e\u0432.<br \/>  \u041d\u043e \u0432 \u0446\u0435\u043b\u043e\u043c \u2014 \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043d\u0435 \u0441\u0430\u043c\u044b\u043c \u0445\u0443\u0434\u0448\u0438\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c, \u043a\u043e\u043b\u0438\u0447\u0435\u0441\u0442\u0432\u043e \u043f\u043e\u0434\u043e\u0437\u0440\u0438\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u043c\u0435\u0441\u0442 \u043d\u0435 \u0432\u044b\u0440\u0430\u0436\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0435\u0445 \u0438\u043b\u0438 \u0447\u0435\u0442\u044b\u0440\u0435\u0445\u0437\u043d\u0430\u0447\u043d\u044b\u043c \u0447\u0438\u0441\u043b\u043e\u043c \u2014 \u0432\u0441\u0435 \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0438 \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u0430\u0442\u044c \u043c\u043e\u0436\u043d\u043e \u0437\u0430 \u0434\u0435\u043d\u044c. <\/p>\n<p>  \u041f\u043e\u0441\u043c\u043e\u0442\u0440\u0438\u043c, \u043d\u0430\u0439\u0434\u0435\u0442 \u043b\u0438 PVS-Studio \u0447\u0442\u043e-\u0442\u043e \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0435.<\/p>\n<p>  \u0418 \u0435\u0449\u0435 \u2014 \u0432\u043e\u0442 \u0442\u0430\u0431\u043b\u0438\u0446\u0430, \u043a\u043e\u0442\u043e\u0440\u0430\u044f \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u0434\u0435\u043b\u0435\u043d\u0438\u0435 \u043e\u0448\u0438\u0431\u043e\u043a \u043c\u0435\u0436\u0434\u0443 \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u043c \u043a\u043e\u0434\u043e\u043c (Runtime \u0438 \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u044b) \u0438 \u043a\u043e\u0434\u043e\u043c \u0432 \u0442\u0435\u0441\u0442\u0430\u0445:<\/p>\n<table>\n<thead>\n<tr>\n<th>Severity<\/th>\n<th>Total<\/th>\n<th>Runtime<\/th>\n<th>Tests<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>High<\/td>\n<td>18<\/td>\n<td>12 <code>*<\/code><\/td>\n<td>6<\/td>\n<\/tr>\n<tr>\n<td>Medium<\/td>\n<td>7<\/td>\n<td>4<\/td>\n<td>3<\/td>\n<\/tr>\n<tr>\n<td>Low<\/td>\n<td>58<\/td>\n<td>13<\/td>\n<td>45<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>  <code>*<\/code> \u2014 4 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0430 \u043d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 Replace \u0432 \u043e\u0434\u043d\u043e\u043c \u043c\u0435\u0442\u043e\u0434\u0435, 3 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0432 \u043c\u0430\u043b\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u043c \u043a\u043e\u0434\u0435. \u0418\u0442\u043e\u0433\u043e ~5 \u043d\u0430 \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435.<\/p>\n<p>  \u042f \u043f\u0440\u043e\u0439\u0434\u0443\u0441\u044c, \u0432 \u043e\u0441\u043d\u043e\u0432\u043d\u043e\u043c, \u043f\u043e \u043e\u0448\u0438\u0431\u043a\u0430\u043c \u0432 Runtime, \u0442.\u043a. \u043e\u0448\u0438\u0431\u043a\u0438 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 \u043e\u0431\u044b\u0447\u043d\u043e \u043c\u0435\u043d\u0435\u0435 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b. \u0425\u043e\u0442\u044f \u043e\u043d\u0438 \u043c\u043e\u0433\u0443\u0442 \u0441\u043e\u0437\u0434\u0430\u0442\u044c \u0438\u043b\u043b\u044e\u0437\u0438\u044e, \u0447\u0442\u043e \u0432\u0441\u0435 \u041e\u041a, \u043d\u043e \u043d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0432 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u0438 \u0432\u0441\u0435 \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u0440\u0430\u0434\u0443\u0436\u043d\u043e &#8230;<\/p>\n<h3>\u041a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u043d\u044b\u0435 \u0432 \u043f\u0440\u043e\u0435\u043a\u0442\u0435<\/h3>\n<p>  \u041d\u0430\u0447\u043d\u0435\u043c \u0441 \u0441\u0430\u043c\u043e\u0439 \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e\u0439 \u0438 \u043e\u043a\u0430\u0437\u0430\u0432\u0448\u0435\u0439\u0441\u044f \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u0435\u0440\u044c\u0435\u0437\u043d\u043e\u0439. \u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430, \u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f, \u0442\u043e\u0436\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0438\u0441\u044c \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439, \u0432\u043e\u0441\u0445\u043e\u0434\u044f\u0449\u0435\u0439 \u043a\u043e\u0440\u043d\u044f\u043c\u0438 \u043a \u044d\u0442\u043e\u043c\u0443 \u0431\u0430\u0433\u0443 <\/p>\n<blockquote><p>(\u044d\u0442\u043e \u0438\u0437 Gitter-\u0447\u0430\u0442\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u043e \u043d\u0430\u0439\u0434\u0435\u043d\u043d\u043e\u0439 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0435):<br \/>  &#8230;an embarrassing bug in SanitizeTableProperty that IIRC puzzled us recently.<br \/>  &#8230;were sure the sanitization worked.<\/p><\/blockquote>\n<p>  PVS-Studio \u0432\u044b\u0434\u0430\u043b\u0430 \u0432\u043e\u0442 \u0442\u0430\u043a\u043e\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435:<\/p>\n<blockquote><p><strong>V3010 The return value of function &#8216;Replace&#8217; is required to be utilized. AzureStorageUtils.cs 278,279,280,281 <\/strong><\/p><\/blockquote>\n<p>  \u0418 \u043f\u043e \u0443\u043a\u0430\u0437\u0430\u043d\u043d\u043e\u043c \u0430\u0434\u0440\u0435\u0441\u0443 \u043d\u0430\u0445\u043e\u0434\u0438\u043b\u0441\u044f <em>(\u0431\u0430\u0433 \u0443\u0436\u0435 \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d)<\/em> \u043c\u0435\u0442\u043e\u0434:<\/p>\n<pre><code>public static string SanitizeTableProperty(string key) {     \/\/ Remove any characters that can't be used in Azure PartitionKey or RowKey values     key.Replace('\/', '_');  \/\/ Forward slash     key.Replace('\\\\', '_'); \/\/ Backslash     key.Replace('#', '_');  \/\/ Pound sign     key.Replace('?', '_');  \/\/ Question mark     if (key.Length &gt;= 1024)         throw new ArgumentException(string.Format(&quot;Key length {0} is too long to be an Azure table key. Key={1}&quot;, key.Length, key));     return key; }<\/code><\/pre>\n<p>  \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043a\u043b\u0430\u0441\u0441\u043d\u044b\u0439 \u0431\u0430\u0433, \u043f\u0440\u044f\u043c\u043e snake oil <em>(\u2026 \u0438 \u0442\u0443\u0442 \u043c\u0435\u0434\u043b\u0435\u043d\u043d\u043e \u043f\u0440\u0438\u0448\u043b\u043e \u043f\u0440\u043e\u0437\u0440\u0435\u043d\u0438\u0435 \u0447\u0442\u043e \u044d\u0442\u043e\u0442 \u0431\u0430\u0433 \u0441\u043a\u043e\u0440\u0435\u0439 \u0432\u0441\u0435\u0433\u043e \u0432\u044b\u043b\u0435\u0437\u0430\u043b \u0438 \u0432 \u043d\u0430\u0448\u0435\u043c \u043a\u043e\u0434\u0435 \u043f\u0430\u0440\u0443 \u0440\u0430\u0437&#8230;.)<\/em>.<br \/>  \u041f\u0430\u0440\u0430\u043c\u0435\u0442\u0440 key \u0442\u0438\u043f\u0430 string, \u043a \u0442\u043e\u043c\u0443 \u0436\u0435 \u043f\u0435\u0440\u0435\u0434\u0430\u0435\u0442\u0441\u044f \u0432 \u043c\u0435\u0442\u043e\u0434. \u0421\u0442\u0440\u043e\u043a\u0438 \u0432 .NET immutable, \u0442\u0430\u043a \u0447\u0442\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0431\u044b \u0440\u0430\u0437 \u043c\u044b \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u043b\u0438 <code>key.Replace<\/code> \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u043d\u0435 \u0438\u0437\u043c\u0435\u043d\u0438\u0442\u0441\u044f.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u043d\u0435\u043f\u043b\u043e\u0445\u0430\u044f \u043d\u0430\u0445\u043e\u0434\u043a\u0430 &#8212;<\/p>\n<blockquote><p><strong>V3006 The object was created but it is not being used. The &#8216;throw&#8217; keyword could be missing: throw new InconsistentStateException(FOO). MemoryStorageGrain.cs 129<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>if (currentETag != null) {     string error = string.Format(&quot;Etag mismatch during {0} for grain {1}: Expected = {2} Received = null&quot;, operation, grainStoreKey, currentETag.ToString());     logger.Warn(0, error);     new InconsistentStateException(error); }<\/code><\/pre>\n<p>  \u041d\u043e\u0432\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0441\u043e\u0437\u0434\u0430\u0435\u0442\u0441\u044f, \u043d\u043e \u043d\u0435 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f. \u0422.\u0435. \u0435\u0441\u043b\u0438 \u043f\u0440\u0438 \u0437\u0430\u043f\u0438\u0441\u0438 \u043f\u0440\u0438\u0441\u044b\u043b\u0430\u0435\u0442\u0441\u044f Etag=null \u0438 \u044d\u0442\u043e \u043f\u0435\u0440\u0432\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c, \u043e\u0448\u0438\u0431\u043a\u0438 \u043d\u0435 \u043f\u0440\u043e\u0438\u0441\u0445\u043e\u0434\u0438\u0442. \u0427\u0443\u0442\u044c \u043d\u0438\u0436\u0435 \u0432 \u0442\u043e\u043c \u0436\u0435 \u043c\u0435\u0442\u043e\u0434\u0435 \u0434\u0440\u0443\u0433\u043e\u0435 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u0432\u0441\u0435 \u0436\u0435 \u0432\u044b\u0431\u0440\u0430\u0441\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u2014 \u0442.\u0435. \u0443 \u043d\u0430\u0441 \u0442\u0443\u0442 \u043f\u0440\u043e\u043f\u0443\u0449\u0435\u043d\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430.<\/p>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435: <\/p>\n<blockquote><p><strong>V3005 The &#8216;jsonSettings&#8217; variable is assigned to itself. AzureTableStorage.cs 104<\/strong><\/p><\/blockquote>\n<p>  \u041f\u0440\u0438 \u0447\u0442\u0435\u043d\u0438\u0438 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0438 \u0441\u0435\u0440\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0432 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u043e\u0439 jsonSettings \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0438\u0440\u0443\u044e\u0442\u0441\u044f 2 \u0440\u0430\u0437\u0430:<\/p>\n<pre><code>if (useJsonFormat) {     jsonSettings = jsonSettings = OrleansJsonSerializer.SerializerSettings; }<\/code><\/pre>\n<p>  \u041d\u0435 \u0441\u0438\u043b\u044c\u043d\u043e \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u043f\u043e \u043c\u043d\u0435 \u0442\u0430\u043a \u0432\u044b\u0433\u043b\u044f\u0434\u0438\u0442 \u043a\u0430\u043a \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0440\u0435\u0444\u0430\u043a\u0442\u043e\u0440\u0438\u043d\u0433\u0430 \u2014 \u0432 &quot;\u043f\u0440\u043e\u0448\u043b\u043e\u0439 \u0436\u0438\u0437\u043d\u0438&quot; \u043e\u0434\u043d\u0430 \u0438\u0437 \u044d\u0442\u0438\u0445 \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0445 \u0441\u043a\u043e\u0440\u0435\u0439 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0430\u0441\u044c \u043f\u043e-\u0434\u0440\u0443\u0433\u043e\u043c\u0443. \u041f\u043e\u0442\u043e\u043c \u043e\u0442\u0434\u0435\u043b\u044c\u043d\u0443\u044e \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u0434\u043b\u044f \u0434\u0435\u0444\u043e\u043b\u0442\u043d\u044b\u0445 \u043d\u0430\u0441\u0442\u0440\u043e\u0435\u043a \u0443\u0431\u0440\u0430\u043b\u0438, \u0430 \u043f\u0440\u0438\u0441\u0432\u043e\u0435\u043d\u0438\u0435 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c.<\/p>\n<p>  \u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 (false alarm \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435):<\/p>\n<blockquote><p>**V3022 Expression &#8216;USE_DEBUG_CONTEXT_PARAMS &amp;&amp; arguments != null &amp;&amp; arguments.Length &gt; 0&#8217; is always false. GrainReference.cs 480***<\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>[NonSerialized] private const bool USE_DEBUG_CONTEXT_PARAMS = false; ... if (USE_DEBUG_CONTEXT_PARAMS &amp;&amp; arguments != null &amp;&amp; arguments.Length &gt; 0) {     ... }<\/code><\/pre>\n<p>  \u041e\u0442\u043b\u0430\u0434\u043e\u0447\u043d\u044b\u0439 \u0444\u043b\u0430\u0433, \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 \u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u0443\u0435\u0442 \u044d\u0442\u0443 \u0432\u0435\u0442\u043a\u0443 if. \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e, \u0438\u0437 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430 \u043f\u043e\u043d\u044f\u0442\u043d\u043e \u0447\u0442\u043e \u043f\u0440\u043e\u0438\u0437\u043e\u0439\u0434\u0435\u0442. \u041d\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043c\u0435\u0441\u0442\u0430 \u0432\u0441\u0435 \u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u2014 \u0447\u0442\u043e\u0431\u044b \u0443\u0431\u0435\u0434\u0438\u0442\u044c\u0441\u044f \u0447\u0442\u043e \u0432\u0430\u0436\u043d\u044b\u0439 \u0438 \u043d\u0443\u0436\u043d\u044b\u0439 \u043a\u043e\u0434 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 &quot;\u0441-\u043e\u043f\u0442\u0438\u043c\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d&quot;.<\/p>\n<p>  \u042d\u0442\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e \u0432 \u043c\u0430\u043b\u043e\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u043c\u043e\u043c \u043a\u043e\u0434\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u044d\u0442\u043e\u0442 \u0443\u0447\u0430\u0441\u0442\u043e\u043a \u043d\u0435 \u0432\u044b\u0437\u044b\u0432\u0430\u043b \u043e\u0441\u043e\u0431\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c, \u043d\u043e \u043c\u043e\u0433 \u0431\u044b:<\/p>\n<blockquote><p><strong>V3025 Incorrect format. A different number of format items is expected while calling &#8216;Format&#8217; function. Expected: 3. Present: 2. Program.cs 169,183<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>WriteStatus(string.Format(&quot;**Calling DeleteGrain({0}, {1}, {2})&quot;, silo, grainId));  WriteStatus(string.Format(&quot;**Calling LookupGrain({0}, {1}, {2})&quot;, silo, grainId));<\/code><\/pre>\n<p>  \u041c\u043e\u0436\u0435\u0442 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u044c\u0441\u044f, \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0435 \u0442\u0430\u043a\u0430\u044f \u0443\u0436 \u0438 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u0430\u044f \u043e\u0448\u0438\u0431\u043a\u0430, \u043d\u0443 \u043b\u043e\u0433\u0433\u0435\u0440, \u043d\u0443 \u0447\u0442\u043e-\u0442\u043e \u043d\u0435 \u0437\u0430\u043f\u0438\u0448\u0435\u0442. \u041d\u043e \u043d\u0435\u0442. \u041d\u0430 \u0441\u0430\u043c\u043e\u043c \u0434\u0435\u043b\u0435 \u0442\u0443\u0442 \u0432\u044b\u043b\u0435\u0442\u0438\u0442 \u2014 <\/p>\n<p>  <code>FormatException: Index (zero based) must be greater than or equal to zero and less than the size of the argument list.<\/code><\/p>\n<p>  \u0410 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u0435 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043c\u043e\u0436\u0435\u0442 \u0441\u0438\u0433\u043d\u0430\u043b\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u043e \u0440\u0435\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430\u0445 \u0432 \u043b\u043e\u0433\u0438\u043a\u0435 \u043a\u043e\u0434\u0430, \u0432 Orleans \u044d\u0442\u043e, \u043a \u0441\u0447\u0430\u0441\u0442\u044c\u044e, \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u0433\u0433\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u0435 &#8212;<\/p>\n<blockquote><p><strong>V3033 It is possible that this &#8216;else&#8217; branch must apply to the previous &#8216;if&#8217; statement. Interner.cs 251<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>private void InternCacheCleanupTimerCallback(object state) { ...    long numRemoved = numEntries - internCache.Count;    if (numRemoved&gt;0)        if (logger.IsVerbose) logger.Verbose(ErrorCode.Runtime_Error_100296, &quot;Removed {0} \/ {1} unused {2} entries in {3}&quot;, numRemoved, numEntries, internCacheName, clock.Elapsed);    else        if (logger.IsVerbose2) logger.Verbose2(ErrorCode.Runtime_Error_100296, &quot;Removed {0} \/ {1} unused {2} entries in {3}&quot;, numRemoved, numEntries, internCacheName, clock.Elapsed); }<\/code><\/pre>\n<p>  \u042d\u0442\u043e \u0441\u0442\u0438\u043b\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438 \u0441\u043b\u043e\u0436\u043d\u043e \u043e\u0444\u043e\u0440\u043c\u043b\u0435\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u2014 \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u043f\u043e\u043d\u044f\u0442\u043d\u043e, \u0447\u0442\u043e \u0445\u043e\u0442\u0435\u043b\u0438 \u0441\u0434\u0435\u043b\u0430\u0442\u044c. \u0420\u0430\u0437\u043e\u0431\u0440\u0430\u0442\u044c\u0441\u044f \u043a\u043e\u043d\u0435\u0447\u043d\u043e \u043c\u043e\u0436\u043d\u043e, \u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u0441\u0442\u0438\u043b\u044c \u043d\u0435 \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u043c\u0430\u0435\u0442 \u0433\u043b\u0430\u0437\u0430 \u0447\u0438\u0442\u0430\u044e\u0449\u0435\u043c\u0443 \u043a\u043e\u0434, \u043d\u043e \u0438 \u043e\u0442\u043a\u0440\u044b\u0432\u0430\u0435\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u0438 \u0434\u043b\u044f \u0432\u0441\u044f\u043a\u0438\u0445 \u043d\u0435\u043f\u0440\u0438\u044f\u0442\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432, \u043f\u043e\u0434\u043e\u0431\u043d\u044b\u0445 \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u0443 \u043e\u0442 Apple.<\/p>\n<blockquote><p>Apple certificate check bug:<br \/>  if ((err = SSLHashSHA1.update(&amp;hashCtx, &amp;serverRandom)) != 0)<br \/>  goto fail;<br \/>  if ((err = SSLHashSHA1.update(&amp;hashCtx, &amp;signedParams)) != 0)<br \/>  goto fail;<br \/>  goto fail;<\/p><\/blockquote>\n<p>  \u0414\u043b\u044f \u0442\u043e\u0433\u043e \u0447\u0442\u043e\u0431\u044b \u0442\u0430\u043a\u0438\u0435 \u0432\u0435\u0449\u0438 \u043d\u0435 \u043f\u043e\u044f\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u2014 \u0435\u0441\u0442\u044c StyleCop \u0438 \u043c\u043d\u043e\u0433\u043e \u0434\u0440\u0443\u0433\u0438\u0445 \u043c\u0435\u0442\u043e\u0434\u043e\u0432 &quot;\u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u043a \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u043c\u0443 \u0441\u0442\u0438\u043b\u044e&quot;. \u0418 \u0438\u0445 \u0442\u043e\u0436\u0435 \u043f\u043e\u043b\u0435\u0437\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c.<\/p>\n<p>  \u0415\u0449\u0435 \u043e\u0434\u043d\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435, \u0442\u043e\u0436\u0435 \u043d\u0435\u0437\u043d\u0430\u0447\u0438\u0442\u0435\u043b\u044c\u043d\u043e\u0435 \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435, \u043f\u0440\u043e\u0441\u0442\u043e \u0438\u0437\u0431\u044b\u0442\u043e\u0447\u043d\u0430\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430. \u041d\u043e \u0435\u0441\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u044b\u0447\u0438\u0441\u043b\u0438\u0442\u0435\u043b\u044c\u043d\u043e &quot;\u0434\u043e\u0440\u043e\u0433\u0430\u044f&quot; \u2014 \u0441\u0442\u043e\u0438\u0442 \u043e\u0442 \u043d\u0435\u0435 \u0438\u0437\u0431\u0430\u0432\u0438\u0442\u044c\u0441\u044f.<\/p>\n<blockquote><p><strong>V3053 An excessive expression. Examine the substrings &#8216;\/bootstrap&#8217; and &#8216;\/boot&#8217;. ClientGenerator.cs 310<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>else if (arg.StartsWith(&quot;\/bootstrap&quot;) || arg.StartsWith(&quot;\/boot&quot;)){...}<\/code><\/pre>\n<p>  \u041d\u0430 \u044d\u0442\u043e\u043c \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u0434\u043e\u0441\u0442\u043e\u0439\u043d\u044b \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f, \u0437\u0430\u043a\u0430\u043d\u0447\u0438\u0432\u0430\u044e\u0442\u0441\u044f \u0438 \u0432\u043f\u0435\u0440\u0435\u0434\u0438 \u0435\u0449\u0435 \u043d\u0435\u043c\u043d\u043e\u0433\u043e <code>Medium<\/code> \u0438 \u043f\u043e\u0431\u043e\u043b\u044c\u0448\u0435 <code>Low<\/code>.<\/p>\n<h3>\u041d\u0430\u0439\u0434\u0435\u043d\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0442\u044f\u0436\u0435\u0441\u0442\u0438<\/h3>\n<p>  \u041f\u0435\u0440\u0432\u044b\u043c \u0438\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f, \u043a\u043e\u0442\u043e\u0440\u044b\u0439, \u043c\u043e\u0436\u0435\u0442 \u0431\u044b\u0442\u044c \u043a\u0430\u043a \u0441\u0438\u0433\u043d\u0430\u043b\u043e\u043c \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u044b, \u0442\u0430\u043a \u0438 \u043f\u043e\u0432\u043e\u0434\u043e\u043c \u0434\u043b\u044f \u0445\u043e\u043b\u0438\u0432\u0430\u0440\u0430.<\/p>\n<blockquote><p><strong>V3054 Potentially unsafe double-checked locking. Use volatile variable(s) or synchronization primitives to avoid this. StreamImpl.cs 142, 144<\/strong><\/p><\/blockquote>\n<p>  \u041f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043f\u043e\u0440\u0435\u0437\u0430\u043d, \u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u044b \u0442\u043e\u043b\u044c\u043a\u043e \u043e\u0441\u043d\u043e\u0432\u043d\u044b\u0435 \u0443\u0447\u0430\u0441\u0442\u043a\u0438 \u0441 \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u044b\u043c\u0438 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u043c\u0438.<\/p>\n<pre><code>private readonly object initLock; \/\/ need the lock since the same code runs in the provider on the ... internal IAsyncBatchObserver&lt;T&gt; GetProducerInterface() { -&gt;&gt;  \/\/ not so \u0441anonical double-checked locking, effectively doing the same,     if (producerInterface != null) return producerInterface;     lock (initLock)     {         if (producerInterface != null)              return producerInterface;          if (provider == null)             provider = GetStreamProvider();          producerInterface = provider.GetProducerInterface&lt;T&gt;(this);     }     return producerInterface; }  internal IInternalAsyncObservable&lt;T&gt; GetConsumerInterface() { -&gt;&gt; \/\/ Canonical double-checked locking     if (consumerInterface == null)     {         lock (initLock)         {             if (consumerInterface == null)             {                 if (provider == null)                     provider = GetStreamProvider();                  consumerInterface = provider.GetConsumerInterface&lt;T&gt;(this);             }         }     }     return consumerInterface; }<\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u0443 \u043d\u0430\u0441 \u0434\u0432\u0430 \u043f\u0440\u0438\u043c\u0435\u0440\u0430 \u043f\u0440\u0438\u043c\u0435\u043d\u0435\u043d\u0438\u044f <a href=\"https:\/\/en.wikipedia.org\/wiki\/Double-checked_locking\">Double-checked locking<\/a> \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u0430. <em>\u0427\u0430\u043a \u041d\u043e\u0440\u0440\u0438\u0441 \u043c\u0438\u0440\u0430 .NET<\/em> (aka Jon Skeet) \u0432 \u0441\u0442\u0430\u0442\u044c\u0435 <a href=\"http:\/\/csharpindepth.com\/Articles\/General\/Singleton.aspx\">Implementing the Singleton Pattern in C#<\/a> \u043f\u0440\u0438\u0432\u043e\u0434\u0438\u0442 \u0431\u043e\u043b\u0435\u0435 \u0438\u0437\u044f\u0449\u043d\u0443\u044e \u0438 \u043d\u0430\u0434\u0435\u0436\u043d\u0443\u044e \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044e, \u0435\u0441\u043b\u0438 \u043d\u0443\u0436\u0435\u043d \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d.<\/p>\n<p>  \u042f \u0435\u0449\u0435 \u0445\u043e\u0442\u0435\u043b \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0447\u0442\u043e:<\/p>\n<blockquote><p>\u041d\u043e \u0432\u043e\u0442 \u043b\u0438\u0447\u043d\u043e \u0443 \u043c\u0435\u043d\u044f \u044d\u0442\u043e\u0442 \u043a\u043e\u0434 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0435\u0449\u0435 \u043e\u0434\u043d\u043e \u0441\u043e\u043c\u043d\u0435\u043d\u0438\u0435: \u0432\u043e \u0432\u0441\u0435\u0445 \u0441\u0442\u0430\u0442\u044c\u044f\u0445 \u0438 \u043f\u0440\u0438\u043c\u0435\u0440\u0430\u0445 \u044d\u0442\u043e\u0442 \u043f\u0430\u0442\u0442\u0435\u0440\u043d \u0432\u0441\u0435\u0433\u0434\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442 <code>lock<\/code> \u043d\u0430 <code>static<\/code> \u043e\u0431\u044a\u0435\u043a\u0442, \u0438 \u0432\u043e\u0442 \u044f \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0443\u0432\u0435\u0440\u0435\u043d, \u0447\u0442\u043e \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u0440\u0438\u043c\u0435\u043d\u044f\u0442\u044c \u043d\u0430 non-<code>static<\/code> \u043b\u043e\u043a\u0430\u0445 \u0441 \u0433\u0430\u0440\u0430\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e \u043d\u0430\u0434\u0435\u0436\u043d\u044b\u043c \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u043c\u2026 <\/p><\/blockquote>\n<p>  \u041d\u043e, \u043f\u043e\u0441\u043b\u0435 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u0438 \u0447\u0442\u0435\u043d\u0438\u044f \u0432\u043e\u0442 \u044d\u0442\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/joeduffyblog.com\/2010\/12\/04\/sayonara-volatile\/\">Sayonara volatile by Joe Duffy<\/a>, \u0441\u043e\u0433\u043b\u0430\u0448\u0443\u0441\u044c, \u0447\u0442\u043e \u0442.\u043a. \u0432 \u043d\u0430\u0448\u0435\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u044d\u0442\u043e \u043d\u0435 \u0441\u0438\u043d\u0433\u043b\u0442\u043e\u043d, \u0434\u043e\u043f\u0443\u0441\u0442\u0438\u043c\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043d\u0435-\u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u043e\u043b\u044f. \u0418 \u0431\u0435\u0437 volatile.<\/p>\n<p>  \u0412\u043e\u043e\u0431\u0449\u0435, \u0438\u0437\u0443\u0447\u0430\u044f \u044d\u0442\u0443 \u043e\u0448\u0438\u0431\u043a\u0443, \u044f \u043e\u0442\u043a\u0440\u044b\u043b \u0434\u043b\u044f \u0441\u0435\u0431\u044f \u0442\u0430\u043a\u0443\u044e &quot;\u0431\u0430\u043d\u043a\u0443 \u0447\u0435\u0440\u0432\u0435\u0439&quot;, \u0447\u0442\u043e \u0443\u0436\u0435 \u0434\u0430\u0436\u0435 \u043d\u0435 \u0437\u043d\u0430\u044e \u2014 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u043b\u0438 \u044d\u0442\u043e \u0432 \u043a\u043e\u0434\u0435 \u0438\u043b\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u043e \u0441 \u044d\u0442\u043e\u0439 \u0434\u0438\u0430\u0433\u043d\u043e\u0441\u0442\u0438\u043a\u043e\u0439 \u0443 PVS-Studio. <\/p>\n<p>  \u041d\u043e \u0441\u0430\u043c \u0444\u0430\u043a\u0442, \u0447\u0442\u043e \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u043c\u043e\u0436\u0435\u0442 \u043b\u043e\u0432\u0438\u0442\u044c \u0442\u0430\u043a\u0438\u0435 \u043f\u0430\u0442\u0442\u0435\u0440\u043d\u044b \u0432\u043e\u043e\u0431\u0449\u0435 \u2014 \u044d\u0442\u043e, \u0438\u043c\u0445\u043e, \u0437\u0434\u043e\u0440\u043e\u0432\u043e. \u0418 \u043d\u0430\u0434\u0435\u044e\u0441\u044c, \u0447\u0442\u043e \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u043c\u044b \u0443\u0432\u0438\u0434\u0438\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u0438\u0437\u043e\u0449\u0440\u0435\u043d\u043d\u044b\u0445 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0439, \u0445\u043e\u0440\u043e\u0448\u0438\u0445 \u0438 \u0440\u0430\u0437\u043d\u044b\u0445.<\/p>\n<p>  \u041f\u0435\u0440\u0435\u0445\u043e\u0434\u0438\u043c \u043a \u0435\u0449\u0435 \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u043c\u0443 \u043f\u0440\u0438\u043c\u0435\u0440\u0443, \u0431\u0430\u0433, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u043e\u0447\u0435\u043d\u044c \u043f\u043b\u043e\u0445\u043e \u043b\u043e\u0432\u0438\u0442\u0441\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c, \u043d\u043e \u043b\u0435\u0433\u043a\u043e \u2014 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u043c:<\/p>\n<blockquote><p><strong>V3022 Expression &#8216;n1 == 0 &amp;&amp; n1 != 0&#8217; is always false. Unsigned type value is always &gt;= 0. Probably the &#8216;||&#8217; operator should be used here. UniqueKey.cs 113<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>private static UniqueKey NewKey(ulong n0, ulong n1, Category category, long typeData, string keyExt) {     \/\/ in the string representation of a key, we grab the least significant half of n1.     \/\/ therefore, if n0 is non-zero and n1 is 0, then the string representation will always be     \/\/ 0x0 and not useful for identification of the grain.     if (n1 == 0 &amp;&amp; n1 != 0)         throw new ArgumentException(&quot;n0 cannot be zero unless n1 is non-zero.&quot;, &quot;n0&quot;);<\/code><\/pre>\n<p>  \u0422\u0443\u0442 \u043d\u0430\u0434\u043e \u0431\u044b\u043b\u043e \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u0442\u044c n0!=0, \u043a\u0430\u043a \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u0438 \u043a \u044d\u0442\u043e\u043c\u0443 \u043a\u043e\u0434\u0443, \u0430 \u0432 \u0442\u0435\u043a\u0443\u0449\u0435\u0439 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u0432\u0441\u0435\u0433\u0434\u0430 false. \u041e\u043f\u044f\u0442\u044c \u0436\u0435, \u0445\u043e\u0440\u043e\u0448\u0438\u0439 Coding-style \u043c\u043e\u0433 \u0431\u044b \u043f\u043e\u043c\u043e\u0447\u044c \u0432 \u0434\u0430\u043d\u043d\u043e\u043c \u0441\u043b\u0443\u0447\u0430\u0435 \u2014 \u0435\u0441\u043b\u0438 \u0431\u044b \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u043d\u0435 \u043d\u0430\u0437\u044b\u0432\u0430\u043b\u0438\u0441\u044c <code>n0<\/code> \u0438 <code>n1<\/code>, \u0430 \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 <code>firstHalf<\/code> \u0438 <code>secondhHalf<\/code> \u2014 \u043e\u0448\u0438\u0431\u043a\u0430 \u0431\u044b \u0431\u0440\u043e\u0441\u0430\u043b\u0430\u0441\u044c \u0432 \u0433\u043b\u0430\u0437\u0430 \u0431\u043e\u043b\u0435\u0435 \u044f\u0432\u043d\u043e. \u0421\u0440\u0430\u0432\u043d\u0438\u0442\u0435:<\/p>\n<pre><code>if (firstHalf == 0 &amp;&amp; secondHalf != 0)     vs if (secondHalf == 0 &amp;&amp; secondHalf != 0)<\/code><\/pre>\n<p>  \u041f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u0435 \u043e\u0431 \u043e\u0434\u0438\u043d\u0430\u043a\u043e\u0432\u043e\u043c \u043a\u043e\u0434\u0435 \u0432 \u0434\u0432\u0443\u0445 \u0440\u0430\u0437\u043d\u044b\u0445 \u043c\u0435\u0442\u043e\u0434\u0430\u0445 \u2014 <\/p>\n<blockquote><p><strong>V3013 It is odd that the body of &#8216;IncrementMetric&#8217; function is fully equivalent to the body of &#8216;DecrementMetric&#8217; function (1079, line 1095). TraceLogger.cs 1079<\/strong><\/p><\/blockquote>\n<p>  Spaced Copy-Paste, \u043c\u0435\u0436\u0434\u0443 \u044d\u0442\u0438\u043c\u0438 2-\u043c\u044f \u043c\u0435\u0442\u043e\u0434\u0430\u043c\u0438 \u0435\u0441\u0442\u044c \u0435\u0449\u0435 \u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u0430\u044f \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u044f<br \/>  \u0434\u0435\u043a\u0440\u0435\u043c\u0435\u043d\u0442\u0430, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442 \u043c\u0435\u0442\u0440\u0438\u043a\u0443.<\/p>\n<pre><code>public override void IncrementMetric(string name, double value) {     foreach (var tc in TelemetryConsumers.OfType&lt;IMetricTelemetryConsumer&gt;())     { -&gt;&gt;     tc.IncrementMetric(name, value);     } } ... public override void DecrementMetric(string name, double value) {     foreach (var  tc in TelemetryConsumers.OfType&lt;IMetricTelemetryConsumer&gt;())     { -&gt;&gt;     tc.IncrementMetric(name, value);     } }<\/code><\/pre>\n<p>  \u0422\u043e \u0436\u0435 \u0441\u0430\u043c\u043e\u0435, \u043d\u043e \u0432 \u0442\u0435\u0441\u0442\u0430\u0445:<\/p>\n<blockquote><p><strong>V3013 It is odd that the body of &#8216;StartTimer&#8217; function is fully equivalent to the body of &#8216;StopTimer&#8217; function (183, line 188). TimerOrleansTest.cs 183<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>public Task StartTimer(string timerName) {     if (persistant) return persistantGrain.StartTimer(timerName);     else return grain.StartTimer(timerName); } public Task StopTimer(string timerName) {     if (persistant) return persistantGrain.StartTimer(timerName);     else return grain.StartTimer(timerName); }<\/code><\/pre>\n<p>  \u042d\u0442\u043e\u0442 \u043f\u0440\u0438\u0432\u0435\u0442 \u043e\u0442 Ctrl+C, Ctrl+V \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 \u043c\u043e\u0436\u0435\u0442 \u0438\u043c\u0435\u0442\u044c \u0438 \u0445\u0443\u0434\u0448\u0438\u0435 \u043f\u043e\u0441\u043b\u0435\u0434\u0441\u0442\u0432\u0438\u044f \u2014 \u0442\u0435\u0441\u0442\u044b \u0431\u0443\u0434\u0443\u0442 false-positive.<\/p>\n<p>  \u0421\u043b\u043e\u0436\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 \u043c\u043e\u0436\u0435\u0442 \u0432\u044b\u0434\u0430\u0432\u0430\u0442\u044c \u043e\u0434\u043d\u0443 \u043e\u0448\u0438\u0431\u043a\u0443 \u043d\u0430 10 \u0438\u043b\u0438 100 \u0437\u0430\u043f\u0443\u0441\u043a\u043e\u0432, \u0442\u043e\u0433\u0434\u0430 \u0442\u0430\u043a\u043e\u0439 \u0442\u0435\u0441\u0442 \u0435\u0449\u0435 \u0438 \u0432\u044b\u0437\u044b\u0432\u0430\u0435\u0442 \u0440\u0430\u0437\u0434\u0440\u0430\u0436\u0435\u043d\u0438\u0435 :<\/p>\n<blockquote><p><strong>V3032 Waiting on this expression is unreliable, as compiler may optimize some of the variables. Use volatile variable(s) or synchronization primitives to avoid this. LoggerTest.cs 468<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>\/\/ Wait until the BulkMessageInterval time interval expires before wring the final log message - should cause bulk message flush while (stopwatch.Elapsed &lt;= TraceLogger.BulkMessageInterval) {     Thread.Sleep(10); }<\/code><\/pre>\n<p>  \u0427\u0435\u0441\u0442\u043d\u043e \u0433\u043e\u0432\u043e\u0440\u044f, \u044f \u0441\u0430\u043c \u043d\u0435 \u043e\u0447\u0435\u043d\u044c \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u043a\u0430\u043a \u0438 \u043f\u043e\u0447\u0435\u043c\u0443 \u0446\u0438\u043a\u043b \u0437\u0434\u0435\u0441\u044c \u043c\u043e\u0436\u0435\u0442 \u043f\u0440\u0435\u0432\u0440\u0430\u0442\u0438\u0442\u044c\u0441\u044f \u0432 \u0431\u0435\u0441\u043a\u043e\u043d\u0435\u0447\u043d\u044b\u0439, \u043d\u043e \u043f\u0440\u0438\u043c\u0435\u0440 \u0432 \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0438 \u044d\u0442\u043e\u0433\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u043d\u0430 \u0441\u0430\u0439\u0442\u0435 PVS-Studio \u0431\u043e\u043b\u0435\u0435 \u043f\u043e\u043d\u044f\u0442\u043d\u044b\u0439 <a href=\"http:\/\/www.viva64.com\/en\/d\/0419\/print\/\">V3032<\/a>.<br \/>  \u041d\u0435 \u043e\u0447\u0435\u043d\u044c \u0431\u043e\u043b\u044c\u0448\u0430\u044f \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u0430, \u0442.\u043a. \u043a\u043e\u0434 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445, \u043d\u043e \u0434\u0430\u0436\u0435 \u0432 \u0442\u0435\u043e\u0440\u0438\u0438 \u2014 \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0430\u0434\u0430\u044e\u0449\u0438\u0435 \u0442\u0435\u0441\u0442\u044b \u0438\u043b\u0438 \u043d\u0430\u0434\u043e\u043b\u0433\u043e \u0437\u0430\u0432\u0438\u0441\u0430\u044e\u0449\u0438\u0435 \u2014 \u043d\u0435 \u0441\u0430\u043c\u0430\u044f \u043f\u0440\u0438\u044f\u0442\u043d\u0430\u044f \u0448\u0442\u0443\u043a\u0430.<\/p>\n<p>  \u0418 \u043e\u043f\u044f\u0442\u044c \u0441\u0442\u0440\u0430\u043d\u043d\u044b\u0439 \u043a\u043e\u0434 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 &#8212;<\/p>\n<blockquote><p><strong>V3051 An excessive type check. The object is already of the &#8216;Exception&#8217; type. PersistenceGrainTests.cs 178<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>catch (AggregateException ae) {     exceptionThrown = true;     Exception e = ae.GetBaseException(); -&gt;&gt; if (e is Exception)     {         \/\/ Expected error     }     else     {         throw e;     } }<\/code><\/pre>\n<p>  \u0418\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u0432\u044b\u043a\u0438\u043d\u0443\u0442\u043e \u043f\u043e\u0432\u0442\u043e\u0440\u043d\u043e, \u043f\u043e\u0442\u043e\u043c\u0443 \u0447\u0442\u043e \u0432 \u0432\u0435\u0442\u043a\u0443 <code>else<\/code> \u043a\u043e\u0434 \u043d\u0438\u043a\u043e\u0433\u0434\u0430 \u043d\u0435 \u043f\u043e\u043f\u0430\u0434\u0435\u0442. \u041a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u0432\u0438\u0441\u0438\u0442 \u043e\u0442 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u0430, \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 \u043c\u043e\u0436\u0435\u0442 \u0438 \u043d\u0435 \u0442\u0430\u043a \u0441\u0442\u0440\u0430\u0448\u043d\u043e, \u0430 \u0432 \u0434\u0440\u0443\u0433\u043e\u043c \u043a\u043e\u0434\u0435 \u2014 \u0447\u0438\u0441\u0442\u043e\u0439 \u0432\u043e\u0434\u044b \u0431\u0430\u0433\u0430<\/p>\n<h3>\u041d\u0435\u043e\u043f\u0430\u0441\u043d\u044b\u0435 (low-severity) \u043e\u0448\u0438\u0431\u043a\u0438<\/h3>\n<p>  \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043c\u043d\u043e\u0433\u043e \u0437\u0430\u043c\u0435\u0447\u0430\u043d\u0438\u0439 PVS-Studio \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b\u0430 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445, \u043d\u043e \u043f\u0440\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u043e \u0438\u0437 \u043d\u0438\u0445, \u043c\u043e\u0436\u043d\u043e \u0441\u0434\u0435\u043b\u0430\u0442\u044c \u0432\u044b\u0432\u043e\u0434, \u0447\u0442\u043e \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0445 \u0438\u043b\u0438 high-impact \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441\u0440\u0435\u0434\u0438 \u043d\u0438\u0445 \u043d\u0435\u0442. \u041f\u0440\u043e\u0441\u0442\u043e \u043a\u043e\u043c\u043f\u043b\u0435\u043a\u0441\u043d\u043e \u043f\u0440\u043e\u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043f\u0440\u043e\u0434\u0443\u043a\u0442 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u0441\u043b\u043e\u0436\u043d\u043e \u0438 \u0447\u0430\u0441\u0442\u043e \u043f\u0440\u0438\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0438\u0434\u0442\u0438 \u043d\u0430 \u0440\u0430\u0437\u043d\u044b\u0435 \u0443\u0445\u0438\u0449\u0440\u0435\u043d\u0438\u044f, \u0447\u0442\u043e\u0431\u044b \u0432\u044b\u0437\u0432\u0430\u0442\u044c \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u043d\u043e\u0435 \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0441\u0438\u0441\u0442\u0435\u043c\u044b.<\/p>\n<p>  \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0432\u043e\u0442:<\/p>\n<blockquote><p><strong>V3008 The &#8216;promise&#8217; variable is assigned values twice successively. Perhaps this is a mistake. Check lines: 91, 84. TestInternalGrains ErrorGrain.cs 91<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>\/\/ the grain method returns OK, but leaves some unobserved promise  --&gt;&gt;Task&lt;long&gt; promise = Task&lt;long&gt;.Factory.StartNew(() =&gt; {     if (!doThrow)         return 0;     logger.Info(&quot;About to throw 1.&quot;);     throw new ArgumentException(&quot;ErrorGrain left Immideate Unobserved Error 1.&quot;); }); --&gt;&gt;promise = null; GC.Collect(); GC.WaitForPendingFinalizers(); GC.Collect(); GC.WaitForPendingFinalizers(); return Task.FromResult(11);<\/code><\/pre>\n<p>  \u041f\u0440\u043e\u0432\u0435\u0440\u044f\u0435\u0442\u0441\u044f \u043f\u043e\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u043a\u043e\u0434\u0430 \u0441 \u0442\u0430\u0441\u043a\u043e\u043c, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0441\u043e\u0431\u0440\u0430\u043d GC.<\/p>\n<p>  \u0418\u0437 \u0442\u043e\u0433\u043e, \u043d\u0430 \u0447\u0442\u043e \u0435\u0449\u0435 \u0441\u0442\u043e\u0438\u0442 \u043e\u0431\u0440\u0430\u0442\u0438\u0442\u044c \u043d\u0435\u043a\u043e\u0442\u043e\u0440\u043e\u0435 \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u0435 (\u044d\u0442\u0438 \u043e\u0448\u0438\u0431\u043a\u0438 \u043c\u043e\u0433\u0443\u0442 \u043f\u0440\u0438\u0432\u0435\u0441\u0442\u0438 \u043a \u043d\u0435\u043a\u043e\u0440\u0440\u0435\u043a\u0442\u043d\u044b\u043c \u043e\u0436\u0438\u0434\u0430\u043d\u0438\u044f\u043c \u043f\u0440\u0438 \u0442\u0435\u0441\u0442\u0430\u0445):<\/p>\n<blockquote><p><strong> V3013 It is odd that the body of &#8216;ProduceSequentialSeries&#8217; function is fully equivalent to the body of &#8216;ProduceParallelSeries&#8217; function (618, line 625). StreamingGrain.cs 618<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>public override async Task ProduceSequentialSeries(int count) {     await base.ProduceParallelSeries(count);     State.Producers = _producers;     await WriteStateAsync(); }  public override async Task ProduceParallelSeries(int count) {     await base.ProduceParallelSeries(count);     State.Producers = _producers;     await WriteStateAsync(); }<\/code><\/pre>\n<p>  \u0423 \u0441\u043f\u0435\u0446\u0438\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0430\u0441\u0441\u0430 \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f \u043c\u0435\u0442\u043e\u0434\u044b, \u043f\u0440\u0435\u0434\u043d\u0430\u0437\u043d\u0430\u0447\u0435\u043d\u043d\u044b\u0435 \u0434\u043b\u044f \u0433\u0435\u043d\u0435\u0440\u0430\u0446\u0438\u0438 \u043f\u043e\u0441\u043b\u0435\u0434\u043e\u0432\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0445 \u0438 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0445 \u0441\u0435\u0440\u0438\u0439 \u0441\u043e\u0431\u044b\u0442\u0438\u0439, \u0432\u0441\u0435\u0433\u0434\u0430 \u0433\u0435\u043d\u0435\u0440\u0438\u0440\u0443\u044e\u0442 \u043f\u0430\u0440\u0430\u043b\u043b\u0435\u043b\u044c\u043d\u044b\u0435. \u041c\u043e\u0436\u0435\u0442 \u044d\u0442\u043e \u0438 \u041e\u041a, \u043d\u043e \u0442\u043e\u0433\u0434\u0430 \u0441\u0435\u043c\u0430\u043d\u0442\u0438\u043a\u0430 \u0432\u043d\u0443\u0442\u0440\u0438 \u0442\u0435\u0441\u0442\u0430 \u0432\u0432\u043e\u0434\u0438\u0442 \u0432 \u0437\u0430\u0431\u043b\u0443\u0436\u0434\u0435\u043d\u0438\u0435.<\/p>\n<blockquote><p><strong>V3013 It is odd that the body of &#8216;TestInitialize&#8217; function is fully equivalent to the body of &#8216;TestCleanup&#8217; function (44, line 52). ConfigTests.cs 44<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>[TestInitialize] public void TestInitialize() {     TraceLogger.UnInitialize();     GrainClient.Uninitialize();     GrainClient.TestOnlyNoConnect = false; }  [TestCleanup] public void TestCleanup() {     TraceLogger.UnInitialize();     GrainClient.Uninitialize();     GrainClient.TestOnlyNoConnect = false; }<\/code><\/pre>\n<p>  \u0412 \u0442\u0435\u0441\u0442\u0430\u0445 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0438 \u043f\u0440\u0438 \u0438\u043d\u0438\u0446\u0438\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0438 \u043f\u0440\u0438 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d\u0438\u0438 \u0437\u0430\u0447\u0435\u043c-\u0442\u043e \u0434\u0432\u0430\u0436\u0434\u044b \u043f\u0440\u043e\u0432\u043e\u0434\u0438\u0442\u0441\u044f \u0414\u0415-\u0438\u043d\u0438\u0446\u0438\u0430\u0446\u0438\u044f \u043f\u0440\u0438\u043c\u0438\u0442\u0438\u0432\u043e\u0432.<\/p>\n<blockquote><p><strong>V3043 The code&#8217;s operational logic does not correspond with its formatting. The statement is indented to the right, but it is always executed. It is possible that curly brackets are missing. RequestContextTest.cs 87,97,111,155,181<\/strong><\/p><\/blockquote>\n<p>  <\/p>\n<pre><code>if(msg.RequestContextData != null) foreach (var kvp in msg.RequestContextData) {     headers.Add(kvp.Key, kvp.Value); };<\/code><\/pre>\n<p>  \u0418 \u0432\u0441\u0435-\u0442\u0430\u043a\u0438, \u044f \u0431\u043e\u043b\u044c\u0448\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u043d\u0438\u043a \u0441\u0442\u0440\u043e\u0433\u0438\u0445 Coding-style \u043f\u0440\u0430\u0432\u0438\u043b. \u041d\u0443 \u0438\u043b\u0438 \u0445\u043e\u0442\u044f \u0431\u044b \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u043f\u0440\u0438\u043d\u0443\u0436\u0434\u0435\u043d\u0438\u044f \u043a \u0441\u0442\u0438\u043b\u044e, \u043f\u0443\u0442\u0435\u043c StyleCop, Resharper \u0438\u043b\u0438 CodeFormatter. \u042d\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442, \u043d\u043e \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043d\u0435 \u043b\u043e\u043c\u0430\u0442\u044c \u0433\u043b\u0430\u0437\u0430.<\/p>\n<p>  <strong>V3052 The original exception object &#8216;ae&#8217; was swallowed. Stack of original exception could be lost. GrainReferenceCastTests.cs 212<\/strong><\/p>\n<pre><code>catch (AggregateException ae) {     Exception ex = ae.InnerException;     while (ex is AggregateException) ex = ex.InnerException;     throw ex; }<\/code><\/pre>\n<p>  \u0422\u0435\u0440\u044f\u0435\u043c \u0441\u0442\u0435\u043a AggregatedException. \u042f \u043f\u043e\u043d\u0438\u043c\u0430\u044e, \u0447\u0442\u043e \u0434\u043b\u044f \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0441 \u0434\u0440\u0443\u0433\u0438\u043c\u0438 \u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f\u043c\u0438 \u044d\u0442\u043e \u043f\u043b\u043e\u0445\u043e, \u043d\u043e \u043c\u044b \u0432 \u043d\u0430\u0448\u0435\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0435 \u0442\u043e\u0447\u043d\u043e \u0442\u0430\u043a \u0436\u0435 &quot;\u0440\u0430\u0441\u043a\u0440\u0443\u0447\u0438\u0432\u0430\u0435\u043c&quot; AggregatedException. \u042f \u0431\u044b \u0437\u0430\u043f\u0438\u0441\u0430\u043b \u044d\u0442\u043e \u0432 false-positive \u0435\u0441\u043b\u0438 \u0432 catch \u0441\u0435\u043a\u0446\u0438\u0438 \u0438\u043c\u0435\u043d\u043d\u043e AggregatedException.<\/p>\n<h3>\u041e\u0446\u0435\u043d\u043a\u0430 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u043e\u0441\u0442\u0438 \u043d\u0430\u0439\u0434\u0435\u043d\u044b\u0445 \u0431\u0430\u0433\u043e\u0432 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430\u043c\u0438 \u043f\u0440\u043e\u0435\u043a\u0442\u0430.<\/h3>\n<p>  \u0418\u0437 \u0432\u0441\u0435\u0445 \u043e\u0442\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0442\u0447\u0435\u0442\u043e\u0432 \u043e\u0431 \u043e\u0448\u0438\u0431\u043a\u0430\u0445, \u0441\u043f\u0443\u0441\u0442\u044f 3 \u0447\u0430\u0441\u0430 5 \u043e\u0442\u043c\u0435\u0447\u0435\u043d\u044b \u043a\u0430\u043a bug, 1 \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0441 <code>Replace<\/code> \u0438\u0441\u043f\u0440\u0430\u0432\u043b\u0435\u043d. \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043d\u0435\u043f\u043b\u043e\u0445\u043e\u0439 \u0443\u043b\u043e\u0432 \u0434\u043b\u044f 20 \u043c\u0438\u043d\u0443\u0442 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u0433\u043e \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0432 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u043e\u043c \u0440\u0435\u0436\u0438\u043c\u0435.<\/p>\n<h2>\u041f\u043e\u0447\u0435\u043c\u0443 Code analysis \u044d\u0442\u043e \u043d\u0435 \u043e\u0447\u0435\u0440\u0435\u0434\u043d\u043e\u0439 favour of the month.<\/h2>\n<p>  <\/p>\n<hr\/>\n<p>  \u041f\u0440\u043e\u0435\u043a\u0442 Orleans \u0440\u0430\u0437\u0432\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043e\u0447\u0435\u043d\u044c \u0438\u043d\u0442\u0435\u043d\u0441\u0438\u0432\u043d\u043e, \u0447\u0430\u0441\u0442\u043e\u0442\u0430 \u043a\u043e\u043c\u043c\u0438\u0442\u043e\u0432 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u0430\u044f, Gihub \u044d\u0442\u043e \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0430\u0435\u0442 \u2014 <a href=\"https:\/\/github.com\/dotnet\/orleans\/graphs\/contributors\">Orleans-contributors<\/a>. \u0417\u0430 \u0432\u0440\u0435\u043c\u044f \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u0441\u0442\u0430\u0442\u044c\u0438, \u044f \u043f\u0440\u043e\u0432\u0435\u0440\u0438\u043b \u043f\u0440\u043e\u0435\u043a\u0442 \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437, \u0441\u043e\u0445\u0440\u0430\u043d\u044f\u044f \u043b\u043e\u0433\u0438 \u0430\u043d\u0430\u043b\u0438\u0437\u0430. \u0412 \u0442\u043e\u043c \u0447\u0438\u0441\u043b\u0435 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0432\u0435\u0440\u0441\u0438\u044f\u043c\u0438 PVS Studio (6.0 \u0438 6.01).<\/p>\n<p>  \u0412\u043e\u0442 \u0441\u0440\u0430\u0432\u043d\u0435\u043d\u0438\u0435 \u0440\u0430\u0437\u043d\u044b\u0445 \u043b\u043e\u0433\u043e\u0432:<\/p>\n<table>\n<thead>\n<tr>\n<th>Priority<\/th>\n<th>28 \u042f\u043d\u0432<\/th>\n<th>2 \u0424\u0435\u0432<\/th>\n<th>4 \u0424\u0435\u0432 v6.01<\/th>\n<th>Comments<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>High<\/td>\n<td>19<\/td>\n<td>21<\/td>\n<td>18<\/td>\n<td>\u0417\u0430 \u0434\u0432\u0430 \u0434\u043d\u044f -3 \u043a\u0440\u0438\u0442\u0438\u0447\u043d\u044b\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u2014 \u0447\u0442\u043e \u0445\u043e\u0440\u043e\u0448\u043e. \u041d\u043e, \u043d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, 2 \u0438\u0437 \u043d\u0438\u0445 \u0431\u044b\u043b\u0438 \u0430\u043d\u0430\u043b\u043e\u0433\u0430\u043c\u0438 V3025 \u043e\u043f\u0438\u0441\u0430\u043d\u043d\u043e\u0439 \u0432\u044b\u0448\u0435. \u041c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u0431\u044b \u0434\u0430\u0436\u0435 \u043d\u0435 \u0447\u0435\u043a\u0438\u043d\u0438\u0442\u044c \u0442\u0430\u043a\u043e\u0439 \u043a\u043e\u0434.<\/td>\n<\/tr>\n<tr>\n<td>Medium<\/td>\n<td>4<\/td>\n<td>4<\/td>\n<td>7<\/td>\n<td>\u0417\u0430 \u044d\u0442\u0438 \u0436\u0435 2 \u0434\u043d\u044f +3 \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f \u0441\u0440\u0435\u0434\u043d\u0435\u0439 \u0442\u044f\u0436\u0435\u0441\u0442\u0438.<\/td>\n<\/tr>\n<tr>\n<td>Low<\/td>\n<td>52<\/td>\n<td>46<\/td>\n<td>58<\/td>\n<td>\u0418 +12 \u043d\u043e\u0432\u044b\u0445 \u0443\u0447\u0430\u0441\u0442\u043a\u043e\u0432 \u043d\u0435\u0430\u043a\u043a\u0443\u0440\u0430\u0442\u043d\u043e\u0433\u043e \u043a\u043e\u0434\u0430.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>  \u041a\u0430\u043a \u0432\u0438\u0434\u043d\u043e \u0438\u0437 \u0442\u0430\u0431\u043b\u0438\u0446\u044b, \u043a\u0440\u0438\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0435 \u043e\u0448\u0438\u0431\u043a\u0438 \u043f\u043e\u044f\u0432\u043b\u044f\u044e\u0442\u0441\u044f \u0438 \u0438\u0441\u0447\u0435\u0437\u0430\u044e\u0442 \u0437\u0430 \u043e\u0447\u0435\u043d\u044c \u043a\u043e\u0440\u043e\u0442\u043a\u043e\u0435 \u0432\u0440\u0435\u043c\u044f. \u041a\u0443\u0434\u0430 \u043a\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u0435\u0439 \u043e\u0442\u043b\u0430\u0432\u043b\u0438\u0432\u0430\u0442\u044c \u0438\u0445 \u0432 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e\u0441\u043b\u0435 \u0431\u0438\u043b\u0434\u0430, \u0430 \u043d\u0435 \u043f\u043e\u0441\u043b\u0435 \u0447\u0430\u0441\u043e\u0432 \u0434\u0435\u0431\u0430\u0433\u0430 \u0438\u043b\u0438 \u043f\u0430\u0434\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0434\u0430\u043a\u0448\u0435\u043d\u0430 \u2014 \u044d\u043a\u043e\u043d\u043e\u043c\u0438\u0442 \u0432\u0440\u0435\u043c\u044f \u0438 \u043d\u0435\u0440\u0432\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0430. \u042d\u0442\u043e, \u043a\u043e\u043d\u0435\u0447\u043d\u043e, \u0431\u0430\u043d\u0430\u043b\u044c\u043d\u043e\u0441\u0442\u044c \u0438\u0437 \u0441\u0435\u0440\u0438\u0438 <em>&quot;\u041b\u0443\u0447\u0448\u0435 \u0431\u044b\u0442\u044c \u0431\u043e\u0433\u0430\u0442\u044b\u043c \u0438 \u0437\u0434\u043e\u0440\u043e\u0432\u044b\u043c, \u0447\u0435\u043c \u0431\u0435\u0434\u043d\u044b\u043c \u0438 \u0431\u043e\u043b\u044c\u043d\u044b\u043c&quot;<\/em>, \u043d\u043e \u0435\u0441\u043b\u0438 \u0435\u0449\u0435 \u0435\u0441\u0442\u044c \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u044b, \u043a\u043e\u0442\u043e\u0440\u044b\u0435 \u043d\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e\u0442 \u0445\u043e\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b\u0439 \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430 \u2014 &quot;You&#8217;re doing it wrong&quot; &#8230;<\/p>\n<p>  \u0412 \u043f\u043b\u0430\u043d\u0435 \u0443\u0434\u043e\u0431\u0441\u0442\u0432\u0430 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u2014 \u0438\u043d\u0442\u0435\u0433\u0440\u0430\u0446\u0438\u044f \u0443 PVS-Studio \u0441 Visual Studio 2015 \u0434\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043f\u0440\u043e\u0441\u0442\u0430\u044f \u2014 \u0432 \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u043c \u043c\u0435\u043d\u044e Solution Explorer \u043d\u0430 \u0421# \u0444\u0430\u0439\u043b\u0435, \u043f\u0440\u043e\u0435\u043a\u0442\u0435, \u0438\u043b\u0438 \u043a\u043e\u0440\u043d\u0435\u0432\u043e\u043c solution \u0435\u0441\u0442\u044c \u043f\u0443\u043d\u043a\u0442 <code>Analyze with PVS-Studio<\/code> \u0441 \u0445\u043e\u0440\u043e\u0448\u043e \u0437\u0430\u043c\u0435\u0442\u043d\u043e\u0439 \u0437\u0435\u043b\u0435\u043d\u043e\u0439 \u0438\u043a\u043e\u043d\u043a\u043e\u0439. \u0414\u043e\u0432\u043e\u043b\u044c\u043d\u043e \u043b\u0435\u0433\u043a\u043e \u043d\u0430\u0439\u0442\u0438. \u0415\u0441\u043b\u0438 \u0442\u043e\u043b\u044c\u043a\u043e \u0432 \u044d\u0442\u043e\u043c \u043a\u043e\u043d\u0442\u0435\u043a\u0441\u0442\u043d\u043e\u043c \u043c\u0435\u043d\u044e \u043d\u0435\u0442\u0443 \u0435\u0449\u0435 100500 \u043f\u0443\u043d\u043a\u0442\u043e\u0432 \u043e\u0442 \u0434\u0440\u0443\u0433\u0438\u0445 \u0440\u0430\u0441\u0448\u0438\u0440\u0435\u043d\u0438\u0439. \u0411\u044b\u043b\u043e \u0431\u044b \u0438\u043d\u0442\u0435\u0440\u0435\u0441\u043d\u043e \u0443\u0432\u0438\u0434\u0435\u0442\u044c \u043a\u0430\u043a\u043e\u0439-\u043d\u0438\u0431\u0443\u0434\u044c \u0432\u0441\u043f\u043e\u043c\u043e\u0433\u0430\u0442\u0435\u043b\u044c\u043d\u044b\u0439 nuget \u043f\u0430\u043a\u0435\u0442, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0431\u044b \u0443\u043c\u0435\u043b \u043b\u0435\u0433\u043a\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u0430\u043d\u0430\u043b\u0438\u0437 \u0438\u0437 \u043a\u043e\u043c\u0430\u043d\u0434\u043d\u043e\u0439 \u0441\u0442\u0440\u043e\u043a\u0438, \u0447\u0442\u043e\u0431\u044b \u043c\u043e\u0436\u043d\u043e \u0431\u044b\u043b\u043e \u043e\u0442\u043a\u0440\u044b\u0442\u044c Package Manger Console \u0438\u043b\u0438 build.cmd \u0438 \u0441\u043a\u0430\u0437\u0430\u0442\u044c <code>PVS-Solution<\/code> \u0438\u043b\u0438 <code>PVS-Project Orleans<\/code>, \u043d\u0443 \u0438 \u0432 \u0431\u0443\u0434\u0443\u0449\u0435\u043c \u044d\u0442\u043e \u0432\u0441\u0435 \u043a\u0430\u043a-\u0442\u043e \u0432\u0441\u0442\u0440\u043e\u0438\u043b\u043e\u0441\u044c \u0432 xproj \u043c\u0435\u0445\u0430\u043d\u0438\u0437\u043c\u044b \u043d\u043e\u0432\u043e\u0433\u043e CoreCLR.<\/p>\n<p>  \u0425\u043e\u0442\u044f, \u0434\u043b\u044f \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0437\u0430\u043f\u0443\u0441\u043a\u0430 \u0445\u0432\u0430\u0442\u0430\u0435\u0442 \u0438 <code>Ctrl+Q, PVS ... Down, Down, Down, Down, Enter<\/code> :).<\/p>\n<h2>\u0417\u0430\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435<\/h2>\n<p>  <\/p>\n<hr\/>\n<p>  \u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0440\u0435\u0430\u043b\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0437\u0430\u0434\u0430\u044e\u0442 \u043e\u0447\u0435\u043d\u044c \u0432\u044b\u0441\u043e\u043a\u0443\u044e \u043f\u043b\u0430\u043d\u043a\u0443 \u0432 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u0438 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u2014 \u0432\u0441\u0435 \u0441\u0442\u0430\u0440\u0430\u044e\u0442\u0441\u044f \u0431\u0435\u0436\u0430\u0442\u044c \u0432\u043f\u0435\u0440\u0435\u0434 \u043e\u0447\u0435\u043d\u044c \u0431\u044b\u0441\u0442\u0440\u043e, \u0447\u0442\u043e\u0431\u044b \u0445\u043e\u0442\u044f \u0431\u044b \u043e\u0441\u0442\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043d\u0430 \u0443\u0440\u043e\u0432\u043d\u0435 \u043a\u043e\u043d\u043a\u0443\u0440\u0435\u043d\u0442\u043e\u0432 \u0432 \u043e\u0442\u0440\u0430\u0441\u043b\u0438. \u0415\u0441\u0442\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e, \u0447\u0442\u043e \u0441 \u0442\u0430\u043a\u043e\u0439 \u0441\u043a\u043e\u0440\u043e\u0441\u0442\u044c\u044e \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u044f \u043c\u043e\u0436\u043d\u043e \u0447\u0442\u043e-\u0442\u043e \u0443\u043f\u0443\u0441\u0442\u0438\u0442\u044c \u0438\u043b\u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u043d\u0435\u0431\u0440\u0435\u0436\u043d\u043e. \u041e\u0431\u0448\u0438\u0440\u043d\u044b\u0439 \u043d\u0430\u0431\u043e\u0440 \u0442\u0435\u0441\u0442\u043e\u0432 \u0445\u043e\u0440\u043e\u0448\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u0432 \u043e\u043f\u0440\u0435\u0434\u0435\u043b\u0435\u043d\u0438\u0438 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043d\u044b\u0445 \u043c\u0435\u0441\u0442 \u0438 \u0440\u0435\u0433\u0440\u0435\u0441\u0441\u0438\u0439, \u043d\u043e \u044d\u0442\u043e \u0442\u043e\u0436\u0435 \u043d\u0435 \u043f\u0430\u043d\u0430\u0446\u0435\u044f \u2014 \u0432 \u0442\u0435\u0441\u0442\u0430\u0445 \u0431\u044b\u0432\u0430\u044e\u0442 \u043e\u0448\u0438\u0431\u043a\u0438, \u0434\u0430 \u0438 \u0441\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u0442\u0430\u043a\u043e\u0433\u043e \u043d\u0430\u0431\u043e\u0440\u0430, \u043a\u0430\u043a \u0438 \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435 \u0435\u0433\u043e \u0432 \u0430\u043a\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u043c \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u0438 \u0442\u0440\u0435\u0431\u0443\u0435\u0442 \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0438 \u0443\u0441\u0438\u043b\u0438\u0439.<\/p>\n<p>  \u041b\u044e\u0431\u043e\u0439 \u0441\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440, \u0431\u0443\u0434\u044c \u0442\u043e \u043f\u0440\u0435\u0434\u0443\u043f\u0440\u0435\u0436\u0434\u0435\u043d\u0438\u044f Visual Studio, \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 Resharper&#8217;\u0430 \u0438\u043b\u0438 PVS-Studio, \u044d\u0442\u043e \u0435\u0449\u0435 \u043e\u0434\u0438\u043d \u0438\u043d\u0441\u0442\u0440\u0443\u043c\u0435\u043d\u0442 \u0432 \u043a\u043e\u043b\u043b\u0435\u043a\u0446\u0438\u0438 \u0440\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0447\u0438\u043a\u0430 \u0438 \u043f\u043e\u043c\u043e\u0449\u043d\u0438\u043a \u043f\u0440\u0438 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0435\u043d\u0438\u0438 \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0445 \u043f\u0440\u043e\u0431\u043b\u0435\u043c \u0441 \u043a\u043e\u0434\u043e\u043c. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0439\u0442\u0435 \u0445\u043e\u0442\u044f \u0431\u044b \u0442\u043e, \u0447\u0442\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u043e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440, \u043d\u0430 \u0432\u0441\u0435\u0445 \u043d\u0430\u0448\u0438\u0445 \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u0445 \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u0432\u043a\u043b\u044e\u0447\u0435\u043d \u0440\u0435\u0436\u0438\u043c Treat Warnings as Errors, \u0447\u0442\u043e \u043f\u043e\u043c\u043e\u0433\u0430\u0435\u0442 \u043f\u0438\u0441\u0430\u0442\u044c \u043a\u043e\u0434 \u0447\u0443\u0442\u044c \u0431\u043e\u043b\u0435\u0435 \u0434\u0438\u0441\u0446\u0438\u043f\u043b\u0438\u043d\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u043e. \u042d\u0442\u043e \u043d\u0438\u0447\u0435\u0433\u043e \u043d\u0435 \u0441\u0442\u043e\u0438\u0442 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0438\u0441\u0442\u0443, \u043d\u043e \u043c\u043e\u0436\u0435\u0442 \u0441\u0431\u0435\u0440\u0435\u0447\u044c \u0435\u0433\u043e \u043e\u0442 \u0432\u044b\u0441\u0442\u0440\u0435\u043b\u043e\u0432 \u0441\u0435\u0431\u0435 \u0432 \u043d\u043e\u0433\u0443. \u0421\u043e\u0432\u0440\u0435\u043c\u0435\u043d\u043d\u044b\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u044b \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043e\u0447\u0435\u043d\u044c \u043b\u0435\u0433\u043a\u043e, \u0432 \u0431\u043e\u043b\u044c\u0448\u0438\u043d\u0441\u0442\u0432\u0435 \u0441\u043b\u0443\u0447\u0430\u0435\u0432 \u0432\u0441\u0451 \u043e\u0442\u043b\u0438\u0447\u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 &quot;\u0438\u0437 \u043a\u043e\u0440\u043e\u0431\u043a\u0438&quot; \u0438 \u0435\u0434\u0438\u043d\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0435, \u0447\u0442\u043e \u043c\u043e\u0436\u0435\u0442 \u0445\u043e\u0442\u044c \u043a\u0430\u043a-\u0442\u043e \u043e\u043f\u0440\u0430\u0432\u0434\u0430\u0442\u044c \u043d\u0435-\u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440\u043e\u0432, \u044d\u0442\u043e \u0432\u043e\u043f\u0440\u043e\u0441 \u0446\u0435\u043d\u044b. <\/p>\n<p>  NB: <em>\u0410\u0432\u0442\u043e\u0440 \u0431\u043b\u0430\u0433\u043e\u0434\u0430\u0440\u0438\u0442 \u043a\u043e\u043c\u0430\u043d\u0434\u0443 PVS-Studio \u0437\u0430 \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u043b\u0435\u043d\u043d\u0443\u044e \u0432\u0440\u0435\u043c\u0435\u043d\u043d\u0443\u044e \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u0434\u043b\u044f \u0442\u0435\u0441\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u0438\u044f.<\/em><\/p>\n<p>  \u0412\u0441\u0435\u043c \u043f\u0440\u043e\u0447\u0438\u0442\u0430\u0432\u0448\u0438\u043c \u2014 Happy and bug-free programming!                 <\/p>\n<div class=\"clear\"><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habrahabr.ru\/post\/276727\/\"> https:\/\/habrahabr.ru\/post\/276727\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<br \/>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>  \u0412\u0441\u0435\u043c \u0434\u043e\u0431\u0440\u043e\u0433\u043e \u0432\u0440\u0435\u043c\u0435\u043d\u0438 \u0441\u0443\u0442\u043e\u043a.<\/p>\n<p>  \u0412\u043d\u0430\u0447\u0430\u043b\u0435 \u043c\u0430\u043b\u0435\u043d\u044c\u043a\u0438\u0439 Disclaimer \u0434\u043b\u044f \u0441\u043e\u043c\u043d\u0435\u0432\u0430\u044e\u0449\u0438\u0445\u0441\u044f: \u0434\u0430, \u0437\u0430 \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u044f, \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e, \u043f\u043e\u043b\u0443\u0447\u0443 \u043b\u0438\u0446\u0435\u043d\u0437\u0438\u044e \u043d\u0430 PVS-Studio \u0434\u043b\u044f \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043e\u0442\u043a\u0440\u044b\u0442\u043e\u0433\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430 Microsoft Orleans. \u0410 \u043c\u043e\u0436\u0435\u0442 \u0438 \u043d\u0435 \u043f\u043e\u043b\u0443\u0447\u0443, \u043a\u0430\u043a \u0444\u0438\u0448\u043a\u0430 \u043b\u044f\u0436\u0435\u0442-\u0441. \u041d\u0435\u0442, \u0441 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0435\u0439 &quot;\u0421\u0438\u041f\u0440\u043e\u0412\u0435\u0440&quot; \u044f \u043d\u0430\u043f\u0440\u044f\u043c\u0443\u044e \u043d\u0438\u043a\u0430\u043a \u043d\u0435 \u0441\u0432\u044f\u0437\u0430\u043d \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u044d\u0442\u043e\u0442 \u043f\u043e\u0441\u0442 \u043f\u043e \u0441\u0432\u043e\u0435\u0439 \u0438\u043d\u0438\u0446\u0438\u0430\u0442\u0438\u0432\u0435.<\/p>\n<p>  \u0410 \u0442\u0435\u043f\u0435\u0440\u044c \u043f\u0435\u0440\u0435\u0439\u0434\u0435\u043c \u043a \u0441\u0443\u0442\u0438.<\/p>\n<p>  <a href=\"http:\/\/www.viva64.com\/ru\/pvs-studio\/\">PVS-Studio 6.0<\/a>, \u043a\u0430\u043a \u0437\u0430\u044f\u0432\u043b\u044f\u0435\u0442 \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u0441\u0430\u0439\u0442 \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u0438, \u044d\u0442\u043e \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u0439 \u0430\u043d\u0430\u043b\u0438\u0437\u0430\u0442\u043e\u0440 \u043a\u043e\u0434\u0430, \u043e\u0440\u0438\u0435\u043d\u0442\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u043d\u0430 \u043f\u0440\u043e\u0441\u0442\u043e\u0442\u0443 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u0438 \u043f\u043e\u0438\u0441\u043a \u043e\u0448\u0438\u0431\u043e\u043a \u043d\u0430 \u044d\u0442\u0430\u043f\u0435 \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u0438\u044f \u043a\u043e\u0434\u0430. <\/p>\n<p>  \u0418 \u043e\u0442\u043d\u043e\u0441\u0438\u0442\u0435\u043b\u044c\u043d\u043e \u043d\u0435\u0434\u0430\u0432\u043d\u043e, \u043a\u043e\u043c\u043f\u0430\u043d\u0438\u044f \u0437\u0430\u0440\u0435\u043b\u0438\u0437\u0438\u043b\u0430 \u0432\u0435\u0440\u0441\u0438\u044e, \u043f\u043e\u0434\u0434\u0435\u0440\u0436\u0438\u0432\u0430\u044e\u0449\u0443\u044e \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0443 C# \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u0427\u0435\u043c \u043c\u044b \u0441\u043e\u0431\u0441\u0442\u0432\u0435\u043d\u043d\u043e \u0438 \u0431\u0443\u0434\u0435\u043c \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u0442\u044c \u043f\u0440\u043e\u0435\u043a\u0442 Microsoft Orleans.<\/p>\n<p>  \u041a\u0441\u0442\u0430\u0442\u0438, \u043a\u043e\u043c\u0430\u043d\u0434\u0430 PVS-Studio \u0442\u043e\u0436\u0435 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043b\u0430 \u043f\u0440\u043e\u0435\u043a\u0442 Orleans \u043d\u0430 \u043f\u0440\u0435\u0434\u043c\u0435\u0442 \u0432\u044b\u044f\u0432\u043b\u0435\u043d\u043d\u044b\u0445 \u043e\u0448\u0438\u0431\u043e\u043a, \u043d\u043e \u044f \u0438\u0445 \u043d\u0435\u043c\u043d\u043e\u0433\u043e \u043e\u043f\u0435\u0440\u0435\u0434\u0438\u043b \u0438 \u043e\u043d\u0438 \u043b\u044e\u0431\u0435\u0437\u043d\u043e \u043f\u0440\u0435\u0434\u043e\u0441\u0442\u0430\u0432\u0438\u043b\u0438 \u043c\u043d\u0435 \u0441\u0432\u043e\u044e \u041a\u0414\u041f\u0412 (&quot;\u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0443 \u0434\u043b\u044f \u043f\u0440\u0438\u0432\u043b\u0435\u0447\u0435\u043d\u0438\u044f \u0432\u043d\u0438\u043c\u0430\u043d\u0438\u044f&quot;) \u0441 \u043d\u0435\u0438\u0437\u043c\u0435\u043d\u043d\u043e \u0440\u0430\u0434\u0443\u044e\u0449\u0438\u043c \u0435\u0434\u0438\u043d\u043e\u0440\u043e\u0433\u043e\u043c. <\/p>\n<p>  <img decoding=\"async\" src=\"http:\/\/centur.github.io\/article_images\/PVS-Orleans\/OrleansAndPVS.png\" alt=\"PVS-Unicorn-In-Clouds\"\/><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-273734","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273734","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273734"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/273734\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273734"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273734"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273734"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}