blob: 9b8944f315ddcf8047fb15f591f2ccbaaaa56571 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright (c) ZeroC, Inc. All rights reserved.
using System.Threading.Tasks;
using ZeroC.Test;
namespace ZeroC.Ice.Test.SeqMapping
{
public class Collocated : TestHelper
{
public override async Task RunAsync(string[] args)
{
await Communicator.ActivateAsync();
Communicator.SetProperty("TestAdapter.Endpoints", GetTestEndpoint(0));
var adapter = Communicator.CreateObjectAdapter("TestAdapter");
adapter.Add("test", new MyClass());
// Don't activate OA to ensure collocation is used.
await AllTests.RunAsync(this, true);
}
public static async Task<int> Main(string[] args)
{
await using var communicator = CreateCommunicator(ref args);
return await RunTestAsync<Collocated>(communicator, args);
}
}
}
|