示例#1
0
    public static LivePage GetCached(string topic_, bool createIfNotThere_)
    {
      if (Cache.ContainsKey(topic_))
        return Cache[topic_];

      if (!createIfNotThere_)
        return null;

      var ret = new LivePage(topic_);
      Cache[topic_] = ret;
      OnLivePageCreated(new LivePageCreatedEventArgs(ret));
      return ret;
    }
 public LivePageCreatedEventArgs(LivePage page_) { Page = page_; }