Exemplo n.º 1
0
        public static bool RegisterPopupWindowProvider <T>(this SMAPluginBase <T> plugin, string name, string[] urlRegexes, IBrowserContentProvider provider) where T : SMAPluginBase <T>
        {
            var svc = plugin.GetService <IPopupWindowSvc>();

            return(svc.IsNull()
        ? false
        : svc.RegisterPopupWindowProvider(name, urlRegexes, provider));
        }
        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));
        }
Exemplo n.º 3
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));
        }