11using System ;
2- using System . Collections . Generic ;
32using System . ComponentModel . Composition ;
43using System . Net ;
5- using System . Security . Authentication . ExtendedProtection ;
6- using System . Threading . Tasks ;
74using GitHub . Models ;
85using Octokit ;
96using Octokit . Internal ;
@@ -24,28 +21,12 @@ public ExportedHttpClient() :
2421 }
2522
2623 [ Export ( typeof ( IHttpListener ) ) ]
27- public class ExportedHttpListener : IHttpListener
24+ public class ExportedHttpListener : HttpListenerWrapper
2825 {
29- readonly IHttpListener inner = new HttpListenerWrapper ( new HttpListener ( ) ) ;
30- public AuthenticationSchemes AuthenticationSchemes { get { return inner . AuthenticationSchemes ; } set { inner . AuthenticationSchemes = value ; } }
31- public AuthenticationSchemeSelector AuthenticationSchemeSelectorDelegate { get { return inner . AuthenticationSchemeSelectorDelegate ; } set { inner . AuthenticationSchemeSelectorDelegate = value ; } }
32- public ServiceNameCollection DefaultServiceNames => inner . DefaultServiceNames ;
33- public ExtendedProtectionPolicy ExtendedProtectionPolicy { get { return inner . ExtendedProtectionPolicy ; } set { inner . ExtendedProtectionPolicy = value ; } }
34- public HttpListener . ExtendedProtectionSelector ExtendedProtectionSelectorDelegate { get { return inner . ExtendedProtectionSelectorDelegate ; } set { inner . ExtendedProtectionSelectorDelegate = value ; } }
35- public bool IgnoreWriteExceptions { get { return inner . IgnoreWriteExceptions ; } set { inner . IgnoreWriteExceptions = value ; } }
36- public bool IsListening => inner . IsListening ;
37- public ICollection < string > Prefixes => inner . Prefixes ;
38- public string Realm { get { return inner . Realm ; } set { inner . Realm = value ; } }
39- public HttpListenerTimeoutManager TimeoutManager => inner . TimeoutManager ;
40- public bool UnsafeConnectionNtlmAuthentication { get { return inner . UnsafeConnectionNtlmAuthentication ; } set { inner . UnsafeConnectionNtlmAuthentication = value ; } }
41- public void Abort ( ) => inner . Abort ( ) ;
42- public IAsyncResult BeginGetContext ( AsyncCallback callback , object state ) => inner . BeginGetContext ( callback , state ) ;
43- public void Close ( ) => inner . Close ( ) ;
44- public IHttpListenerContext EndGetContext ( IAsyncResult asyncResult ) => inner . EndGetContext ( asyncResult ) ;
45- public IHttpListenerContext GetContext ( ) => inner . GetContext ( ) ;
46- public Task < IHttpListenerContext > GetContextAsync ( ) => inner . GetContextAsync ( ) ;
47- public void Start ( ) => inner . Start ( ) ;
48- public void Stop ( ) => inner . Stop ( ) ;
26+ public ExportedHttpListener ( )
27+ : base ( new HttpListener ( ) )
28+ {
29+ }
4930 }
5031
5132 [ Export ( typeof ( IEnterpriseProbe ) ) ]
0 commit comments