Пример #1
0
        public Handshaker(IWebServerGenerator webServerGenerator, IRomePackageManager packageManager, IEnumerable <string> myIPs)
        {
            this.myIPs = myIPs;

            ipFinder = new ServerIPFinder(webServerGenerator, packageManager);
            ipFinder.IPDetectionCompleted += IpFinder_IPDetectionCompleted;
        }
Пример #2
0
        public FileSender(object _remoteSystem, IWebServerGenerator _webServerGenerator, IRomePackageManager _packageManager, IEnumerable <string> _myIPs, string _deviceName)
        {
            remoteSystem       = _remoteSystem;
            webServerGenerator = _webServerGenerator;
            packageManager     = _packageManager;

            ipFinder = new ServerIPFinder(webServerGenerator, packageManager);

            myIPs = new List <string>(_myIPs);

            deviceName = _deviceName;
        }
Пример #3
0
 internal static void InitHandshakerEvents()
 {
     ServerIPFinder.ClearEventRegistrations();
     ServerIPFinder.IPDetectionFailed += ServerIPFinder_IPDetectionFailed;
 }