﻿namespace Reaper.SharpBattleNet.Framework.DiabloIIRealmServer.Details
{
    using System;
    using System.Linq;
    using System.Text;
    using System.Collections;
    using System.Collections.Generic;
    using System.Threading;
    using System.Threading.Tasks;

    using Nini;
    using Nini.Config;
    using Nini.Ini;
    using Nini.Util;

    using NLog;

    using Reaper;
    using Reaper.SharpBattleNet;
    using Reaper.SharpBattleNet.Framework;
    using Reaper.SharpBattleNet.Framework.DiabloIIRealmServer;

    internal sealed class DiabloIIRealmServer : IDiabloIIRealmServer
    {
        private readonly IConfigSource _configuration = null;
        private readonly Logger _logger = LogManager.GetCurrentClassLogger();

        public DiabloIIRealmServer(IConfigSource configuration)
        {
            _configuration = configuration;

            return;
        }

        public async Task Start(string[] commandArguments)
        {
            return;
        }

        public async Task Stop()
        {
            return;
        }
    }
}


﻿namespace Reaper.SharpBattleNet.Framework.DiabloIIRealmServer.Details
{
    using System;
    using System.Linq;
    using System.Text;
    using System.Collections;
    using System.Collections.Generic;
    using System.Threading;
    using System.Threading.Tasks;

    using Nini;
    using Nini.Config;
    using Nini.Ini;
    using Nini.Util;

    using NLog;

    using Reaper;
    using Reaper.SharpBattleNet;
    using Reaper.SharpBattleNet.Framework;
    using Reaper.SharpBattleNet.Framework.Networking;
    using Reaper.SharpBattleNet.Framework.DiabloIIRealmServer;

    internal sealed class DiabloIIRealmServer : IDiabloIIRealmServer
    {
        private readonly IConfigSource _configuration = null;
        private readonly INetworkManager _networkManager = null;

        private readonly Logger _logger = LogManager.GetCurrentClassLogger();

        public DiabloIIRealmServer(IConfigSource configuration, INetworkManager networkManager)
        {
            _configuration = configuration;
            _networkManager = networkManager;

            return;
        }

        public async Task Start(string[] commandArguments)
        {
            await _networkManager.StartNetworking();

            return;
        }

        public async Task Stop()
        {
            await _networkManager.StopNetworking();

            return;
        }
    }
}


Update D2RS to handle new networking infrastructure.
Update D2RS to handle new networking infrastructure.
