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)); }
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)); }