aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener.Portable/Primitives
diff options
context:
space:
mode:
Diffstat (limited to 'SocketHttpListener.Portable/Primitives')
-rw-r--r--SocketHttpListener.Portable/Primitives/HttpListenerException.cs17
-rw-r--r--SocketHttpListener.Portable/Primitives/ICertificate.cs12
-rw-r--r--SocketHttpListener.Portable/Primitives/IStreamFactory.cs18
-rw-r--r--SocketHttpListener.Portable/Primitives/ITextEncoding.cs17
4 files changed, 0 insertions, 64 deletions
diff --git a/SocketHttpListener.Portable/Primitives/HttpListenerException.cs b/SocketHttpListener.Portable/Primitives/HttpListenerException.cs
deleted file mode 100644
index 7b383fd23..000000000
--- a/SocketHttpListener.Portable/Primitives/HttpListenerException.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace SocketHttpListener.Primitives
-{
- public class HttpListenerException : Exception
- {
- public HttpListenerException(int statusCode, string message)
- : base(message)
- {
-
- }
- }
-}
diff --git a/SocketHttpListener.Portable/Primitives/ICertificate.cs b/SocketHttpListener.Portable/Primitives/ICertificate.cs
deleted file mode 100644
index 1289da13d..000000000
--- a/SocketHttpListener.Portable/Primitives/ICertificate.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace SocketHttpListener.Primitives
-{
- public interface ICertificate
- {
- }
-}
diff --git a/SocketHttpListener.Portable/Primitives/IStreamFactory.cs b/SocketHttpListener.Portable/Primitives/IStreamFactory.cs
deleted file mode 100644
index 57e21e31b..000000000
--- a/SocketHttpListener.Portable/Primitives/IStreamFactory.cs
+++ /dev/null
@@ -1,18 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using MediaBrowser.Model.Net;
-
-namespace SocketHttpListener.Primitives
-{
- public interface IStreamFactory
- {
- Stream CreateNetworkStream(IAcceptSocket acceptSocket, bool ownsSocket);
- Stream CreateSslStream(Stream innerStream, bool leaveInnerStreamOpen);
-
- Task AuthenticateSslStreamAsServer(Stream stream, ICertificate certificate);
- }
-}
diff --git a/SocketHttpListener.Portable/Primitives/ITextEncoding.cs b/SocketHttpListener.Portable/Primitives/ITextEncoding.cs
deleted file mode 100644
index b10145687..000000000
--- a/SocketHttpListener.Portable/Primitives/ITextEncoding.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-using MediaBrowser.Model.Text;
-
-namespace SocketHttpListener.Primitives
-{
- public static class TextEncodingExtensions
- {
- public static Encoding GetDefaultEncoding(this ITextEncoding encoding)
- {
- return Encoding.UTF8;
- }
- }
-}