File tree 4 files changed +16
-4
lines changed
src/Communication.UI.Blazor/Calling
Communication.UI.Blazor.Demo/Pages 4 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 41
41
<PrivateAssets >all</PrivateAssets >
42
42
<IncludeAssets >runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets >
43
43
</PackageReference >
44
+ <PackageReference Include =" Microsoft.VisualStudio.Threading.Analyzers" >
45
+ <PrivateAssets >all</PrivateAssets >
46
+ <IncludeAssets >runtime; build; native; contentfiles; analyzers</IncludeAssets >
47
+ </PackageReference >
44
48
</ItemGroup >
45
49
46
50
<!-- Add the default using directive for all the code -->
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ namespace PosInformatique.Azure.Communication.UI.Blazor
12
12
/// Implementation of the <see cref="ICallingService"/> used to create instances
13
13
/// of the <see cref="CallComposite"/>.
14
14
/// </summary>
15
- public class CallingService : ICallingService , IAsyncDisposable
15
+ public sealed class CallingService : ICallingService , IAsyncDisposable
16
16
{
17
17
private readonly IJSRuntime jsRuntime ;
18
18
Original file line number Diff line number Diff line change @@ -25,3 +25,9 @@ dotnet_diagnostic.BL0005.severity = none
25
25
26
26
# CA1861: Avoid constant arrays as arguments
27
27
dotnet_diagnostic.CA1861.severity = none
28
+
29
+ # VSTHRD103: Call async methods when in an async method
30
+ dotnet_diagnostic.VSTHRD103.severity = none
31
+
32
+ # VSTHRD200: Use "Async" suffix for async methods
33
+ dotnet_diagnostic.VSTHRD200.severity = none
Original file line number Diff line number Diff line change @@ -11,6 +11,8 @@ namespace PosInformatique.Azure.Communication.UI.Blazor.Demo.Pages
11
11
12
12
public partial class Home
13
13
{
14
+ private readonly List < string > log ;
15
+
14
16
private CallAdapter ? callAdapter ;
15
17
16
18
private string userId ;
@@ -31,8 +33,6 @@ public partial class Home
31
33
32
34
private bool leaveCallForEveryone ;
33
35
34
- private List < string > log ;
35
-
36
36
public Home ( )
37
37
{
38
38
this . userId = string . Empty ;
@@ -49,7 +49,7 @@ public Home()
49
49
this . raiseHandButton = true ;
50
50
this . screenShareButton = true ;
51
51
52
- this . log = new List < string > ( ) ;
52
+ this . log = [ ] ;
53
53
}
54
54
55
55
public bool DisableLoad
@@ -78,6 +78,8 @@ public async ValueTask DisposeAsync()
78
78
79
79
this . callAdapter = null ;
80
80
}
81
+
82
+ GC . SuppressFinalize ( this ) ;
81
83
}
82
84
83
85
private async Task CreateUserAsync ( )
You can’t perform that action at this time.
0 commit comments