コード例 #1
0
 public IReadOnlyList <VpnHost> Servers()
 {
     return(_guestHoleServers
            .GetAll()
            .Select(server => new VpnHost(server.Host, server.Ip))
            .OrderBy(s => _random.Next())
            .ToList());
 }
コード例 #2
0
        public void Initialize()
        {
            var guestHoleState = new GuestHoleState();

            guestHoleState.SetState(true);

            _guestHoleServers.GetAll().Returns(new List <GuestHoleServerContract>());
            _connector = new GuestHoleConnector(_serviceManager, _appSettings, guestHoleState, _config, _guestHoleServers);
        }
コード例 #3
0
 public IReadOnlyCollection <LogicalServerContract> GetAll()
 {
     return(_origin.GetAll());
 }
コード例 #4
0
 public IReadOnlyCollection <T> GetAll()
 {
     return(_origin.GetAll());
 }