<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:43:55 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-2944] Check uses of ConstrainedExecution and ReliabilityContract when targetting netstandard2.0</title>
                <link>https://jira.mongodb.org/browse/CSHARP-2944</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description></description>
                <environment></environment>
        <key id="1138962">CSHARP-2944</key>
            <summary>Check uses of ConstrainedExecution and ReliabilityContract when targetting netstandard2.0</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="mikalai.mazurenka@mongodb.com">Mikalai Mazurenka</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                    </labels>
                <created>Fri, 7 Feb 2020 17:06:18 +0000</created>
                <updated>Tue, 11 May 2021 19:20:42 +0000</updated>
                            <resolved>Tue, 11 May 2021 19:20:42 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3765131" author="mikalai.mazurenka" created="Mon, 10 May 2021 21:42:57 +0000"  >&lt;p&gt;The &lt;tt&gt;Constrained Execution Regions&lt;/tt&gt; are only supported in .NET Framework (&lt;a href=&quot;https://docs.microsoft.com/en-us/dotnet/framework/performance/constrained-execution-regions&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MSDN: CER&lt;/a&gt;).&lt;br/&gt;
CER delineates a region of code where &quot;out-of-band&quot; exceptions (&lt;tt&gt;ThreadAbortException&lt;/tt&gt;, &lt;tt&gt;OutOfMemoryException&lt;/tt&gt;, &lt;tt&gt;StackOverflowException&lt;/tt&gt;) cannot be thrown. This feature mostly exists for SQL in-process hosting CLR and in our code it is used as an additional layer of safety when disposing unmanaged resources.&lt;br/&gt;
Regarding usage in targets other than net452 with regard to exceptions thrown:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The &lt;tt&gt;ThreadAbortException&lt;/tt&gt; is not supported in .NET Standard and is not available in .NET 5 and .NET Core: &lt;a href=&quot;https://docs.microsoft.com/en-us/dotnet/api/system.threading.thread.abort?view=net-5.0#System_Threading_Thread_Abort&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MSDN: Thread.Abort Method&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Other exceptions can still be thrown within CER in targets other than net452.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As a summary, nothing could be done in scope of this ticket, since the code to support CER is already at place for net452 and is not available for other targets.&lt;/p&gt;</comment>
                            <comment id="2839363" author="rstam" created="Fri, 7 Feb 2020 17:08:28 +0000"  >&lt;p&gt;Check RuntimeHelpers.PrepareConstrainedRegions also.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CSHARP-2934</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwd5m7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>