This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class ThreadSafeOrganizationService : IOrganizationService { | |
| private readonly object Locker = new object(); | |
| private readonly IOrganizationService _orgService; | |
| /// <summary> | |
| /// IOrganizationService wrapper to prevents integration tests from accessing the SDK in parallel. | |
| /// </summary> | |
| public ThreadSafeOrganizationService(IOrganizationService orgService) { | |
| _orgService = orgService; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Get-ChildItem ..\SomePath\ -Filter *.cs | Foreach-Object { | |
| $filename = $_.FullName | |
| # Add ExcludeFromCodeCoverage attribute in front of classes, if not already present | |
| $found = Select-String -Path $filename -Pattern "System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage" | |
| if ($found -eq $null) { | |
| (Get-Content $fileName) | | |
| Foreach-Object { | |
| if ($_ -match "public partial class" -or $_ -match "internal sealed class") { | |
| #Add before current line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Imports here... | |
| /** | |
| * Rollup plugin that comments lines starting with "exports.xxx" | |
| * This must be placed before minify/terser rollup plugins (and the reason it hooks on renderChunk instead of generateBundle) | |
| * | |
| * Related: https://github.com/rollup/rollup/issues/1893 (output.exports: "none" is not allowed using output.format: "cjs") | |
| */ | |
| const removeExportsPlugin = function () { | |
| return { |