Пример #1
0
        /// <summary>
        /// Determines whether this instance can connect to a patching service.
        /// </summary>
        /// <returns><c>true</c> if this instance can connect to a patching service; otherwise, <c>false</c>.</returns>
        public bool CanPatch()
        {
            PatchProtocolHandler Patch = Config.GetPatchProtocol();

            if (Patch != null)
            {
                return(Patch.CanPatch());
            }
            else
            {
                return(false);
            }
        }
Пример #2
0
        /// <summary>
        /// Determines whether this instance can connect to a patching service.
        /// </summary>
        /// <returns><c>true</c> if this instance can connect to a patching service; otherwise, <c>false</c>.</returns>
        public bool CanPatch()
        {
            PatchProtocolHandler patchService = Configuration.GetPatchProtocol();

            return(patchService != null && patchService.CanPatch());
        }