private void ShutdownWrapper()
 {
     if (_wrapper != null)
     {
         _wrapper.Dispose();
         _wrapper = null;
     }
 }
        private void InitWrapper()
        {
            if (_wrapper != null)
            {
                if (_wrapper.Port != port)
                {
                    ShutdownWrapper();
                }
                else
                {
                    return;
                }
            }

            _wrapper = new OneServerWrapper(WrapperOnLogReceived, port);

            _wrapper.AllocatedReceived       += WrapperOnAllocatedReceived;
            _wrapper.MetadataReceived        += WrapperOnMetadataReceived;
            _wrapper.HostInformationReceived += WrapperOnHostInformationReceived;
            _wrapper.SoftStopReceived        += WrapperOnSoftStopReceived;
            _wrapper.ApplicationInstanceInformationReceived += WrapperOnApplicationInstanceInformationReceived;
            _wrapper.CustomCommandReceived += WrapperOnCustomCommandReceived;
        }