public static bool RegisterProvider <T>(this SMAPluginBase <T> plugin, string name, string[] urlRegexes, KeywordScanningOptions keywordScanningOptions, IMouseoverContentProvider provider) where T : SMAPluginBase <T>
        {
            var svc = plugin.GetService <IMouseoverSvc>();

            if (svc == null)
            {
                return(false);
            }

            return(svc.RegisterProvider(name, urlRegexes, keywordScanningOptions, provider));
        }
예제 #2
0
        public static bool RegisterProvider <T>(this SMAPluginBase <T> plugin, string name, string[] urlRegexes, IMouseoverContentProvider provider) where T : SMAPluginBase <T>
        {
            var svc = plugin.GetService <IMouseoverSvc>();

            if (svc == null)
            {
                LogTo.Debug("Failed to get mouseover service - it was null");
                return(false);
            }

            return(svc.RegisterProvider(name, urlRegexes, provider));
        }