[System] Fix compilation on watchos (#5108)
[mono.git] / mcs / class / System / System.Net / HttpListenerBasicIdentity.platformnotsupported.cs
index 11fc32fb7c68861ad0e8a8e5bdb711aeb67d078f..b83d995b8983d1dc74d0cfc38913a36687c3cf72 100644 (file)
 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
 // THE SOFTWARE.
 //
+using System.Security.Principal;
 namespace System.Net {
-       public class HttpListenerBasicIdentity {
-               internal const string EXCEPTION_MESSAGE = "System.Net.HttpListenerBasicIdentity is not supported on the current platform.";
+       public class HttpListenerBasicIdentity : GenericIdentity {
+               const string EXCEPTION_MESSAGE = "System.Net.HttpListenerBasicIdentity is not supported on the current platform.";
 
-               public HttpListenerBasicIdentity (string username, string password)
+               public HttpListenerBasicIdentity (string username, string password) : base (username, "Basic")
                {
                        throw new PlatformNotSupportedException (EXCEPTION_MESSAGE);
                }