摘要:
第四步 Provider Manager 类 这个类根据 第三步中的 Provider Configuration类中的配置信息,实例化Provider. public sealed class IndexBuilderManager { //private static bool isInitialized = false; //private s... 阅读全文
摘要:
使用provider模式的第三步为 建立Provider Configuration 类 在mojoPortal中索引provider中相关类为IndexBuilderConfiguration 这个类的主要作用是读取配置文件中所有相关provider的信息 。 代码如下 1 public class IndexBuilderConfiguration 2 { 3 ... 阅读全文
摘要:
mojoPortal中建立索引时使用了Provider模式,学习一下。 第一步 Main provider class 具体实现为是: IndexBuilderProvider 代码如下: public abstract class IndexBuilderProvider : ProviderBase { public abstract void Rebui... 阅读全文
摘要:
IIndexableContent接口如下: public interface IIndexableContent { event ContentChangedEventHandler ContentChanged; } 这个接口定义了ContentChanged事件,本接口的作用定义了与索引有关的基础接口。 委托ContentC... 阅读全文