Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6f4f34a

Browse files
committed
Update rotko.
`HttpListenerWrapper` is now non-sealed so we don't need to wrap it to export it.
1 parent 4880b88 commit 6f4f34a

File tree

2 files changed

+5
-24
lines changed

2 files changed

+5
-24
lines changed

lib/Rothko.0.0.3-ghfvs.nupkg

-186 Bytes
Binary file not shown.

src/GitHub.App/Infrastructure/ExportWrappers.cs

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
using System;
2-
using System.Collections.Generic;
32
using System.ComponentModel.Composition;
43
using System.Net;
5-
using System.Security.Authentication.ExtendedProtection;
6-
using System.Threading.Tasks;
74
using GitHub.Models;
85
using Octokit;
96
using 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

Comments
 (0)