aboutsummaryrefslogtreecommitdiff
path: root/SocketHttpListener.Portable/Primitives
diff options
context:
space:
mode:
authorLuke <luke.pulverenti@gmail.com>2017-05-31 15:40:34 -0400
committerGitHub <noreply@github.com>2017-05-31 15:40:34 -0400
commit91176d9ccc1dde8155c10411c70e62a9f4b059d5 (patch)
tree21365f5a8dd09534a53d9f88d2a7a3116f3f3f98 /SocketHttpListener.Portable/Primitives
parentc37c9a75073b1b9caa3af2c3bc62abd837bd630e (diff)
parent4e10daf646e0788409f2bc52ef70effa2616e3f3 (diff)
Merge pull request #2677 from MediaBrowser/beta
Beta
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;
- }
- }
-}