mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-18 03:51:19 -10:00
ContextsTest.cs, CrossDomainCalls.cs, DelegateCalls.cs, HttpCalls.cs, ReflectionCalls.cs, ServerObject.cs, SyncCalls.cs, TcpCalls.cs: Shortened namespace name. svn path=/trunk/mcs/; revision=23353
68 lines
1.3 KiB
C#
68 lines
1.3 KiB
C#
//
|
|
// MonoTests.Remoting.HttpCalls.cs
|
|
//
|
|
// Author: Lluis Sanchez Gual ([email protected])
|
|
//
|
|
// 2003 (C) Copyright, Ximian, Inc.
|
|
//
|
|
|
|
using System;
|
|
using System.Runtime.Remoting;
|
|
using System.Runtime.Remoting.Channels;
|
|
using System.Runtime.Remoting.Channels.Http;
|
|
using NUnit.Framework;
|
|
|
|
namespace MonoTests.Remoting
|
|
{
|
|
[TestFixture]
|
|
public class HttpSyncCallTest : SyncCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[TestFixture]
|
|
public class HttpAsyncCallTest : AsyncCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[TestFixture]
|
|
public class HttpReflectionCallTest : ReflectionCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[TestFixture]
|
|
public class HttpDelegateCallTest : DelegateCallTest
|
|
{
|
|
public override ChannelManager CreateChannelManager ()
|
|
{
|
|
return new HttpChannelManager ();
|
|
}
|
|
}
|
|
|
|
[Serializable]
|
|
public class HttpChannelManager : ChannelManager
|
|
{
|
|
public override IChannelSender CreateClientChannel ()
|
|
{
|
|
return new HttpChannel ();
|
|
}
|
|
|
|
public override IChannelReceiver CreateServerChannel ()
|
|
{
|
|
return new HttpChannel (1133);
|
|
}
|
|
}
|
|
}
|
|
|