@@ -123,7 +123,7 @@ public AuthorizedSession(string token, UnauthorizedSession session)
123123 }
124124 }
125125
126- private static readonly Encoding utf8nobom = new UTF8Encoding ( false ) ;
126+ private static readonly Encoding Utf8NoBom = new UTF8Encoding ( false ) ;
127127
128128 private static string CreateEndPointHttpUrl ( IPEndPoint endPoint )
129129 => endPoint . AddressFamily == AddressFamily . InterNetworkV6
@@ -250,7 +250,7 @@ public EndPoint Start(
250250
251251 taskProcessListener = Task . Run ( ProcessListenerAsync ) ;
252252
253- return EndPoint ! ;
253+ return EndPoint ;
254254 }
255255
256256 public IDeviceEndPoint GetEndPoint ( )
@@ -269,7 +269,7 @@ private async Task ProcessListenerAsync()
269269 HttpListenerContext ? context = null ;
270270
271271 try {
272- context = await listener ! . GetContextAsync ( ) . ConfigureAwait ( false ) ;
272+ context = await listener . GetContextAsync ( ) . ConfigureAwait ( false ) ;
273273 }
274274 catch ( ArgumentException ) when ( RuntimeInformation . IsOSPlatform ( OSPlatform . Windows ) ) {
275275 return ; // disposed
@@ -324,7 +324,7 @@ string content
324324 )
325325 {
326326 const string ContentType = "text/plain" ;
327- var contentEncoding = utf8nobom ;
327+ var contentEncoding = Utf8NoBom ;
328328
329329 try {
330330 response . StatusCode = ( int ) statusCode ;
@@ -581,7 +581,7 @@ private static async Task WriteJsonContentAsync<TResponseContent>(
581581 )
582582 {
583583 const string ContentType = "application/json" ;
584- var contentEncoding = utf8nobom ;
584+ var contentEncoding = Utf8NoBom ;
585585
586586 try {
587587 response . StatusCode = ( int ) statusCode ;
@@ -657,7 +657,7 @@ JsonDocument requestJsonDocument
657657
658658 var session = UnauthorizedSession . Create (
659659 state : State ,
660- remoteEndPoint : remoteEndPoint ! ,
660+ remoteEndPoint : remoteEndPoint ,
661661 sessionId : sessionId ,
662662 expiresOn : sessionExpiresOn ,
663663 key : keyAndIv . AsSpan ( 0 , 16 ) . ToArray ( ) ,
@@ -731,7 +731,7 @@ ITapoPassThroughResponse passThroughResponse
731731 )
732732 {
733733 const string ContentType = "application/json" ;
734- var contentEncoding = utf8nobom ;
734+ var contentEncoding = Utf8NoBom ;
735735
736736 try {
737737 response . StatusCode = ( int ) HttpStatusCode . OK ;
@@ -759,9 +759,9 @@ ITapoPassThroughResponse passThroughResponse
759759 type : typeOfSecurePassThroughResponse ,
760760 bindingAttr : BindingFlags . Instance | BindingFlags . Public ,
761761 binder : null ,
762- args : new object [ ] { errorCode , passThroughResponse } ,
762+ args : [ errorCode , passThroughResponse ] ,
763763 culture : null
764- ) ! ;
764+ ) ;
765765
766766 await JsonSerializer . SerializeAsync (
767767 utf8Json : buffer ,
0 commit comments