X13.Periphery.MsDevice.GetTopicInfo C# (CSharp) Method

GetTopicInfo() private method

private GetTopicInfo ( string path, bool sendRegister = true ) : TopicInfo
path string
sendRegister bool
return TopicInfo
    private TopicInfo GetTopicInfo(string path, bool sendRegister=true) {
      Topic cur=null;
      int idx=path.LastIndexOf('/');
      string cName=path.Substring(idx+1);

      var rec=_NTTable.FirstOrDefault(z => cName.StartsWith(z.name));
      TopicInfo ret;
      if(rec.name!=null && !path.StartsWith("/local")) {
        cur=Topic.GetP(path, rec.type, Owner, Owner);
        ret=GetTopicInfo(cur, sendRegister);
      } else {
        ret=null;
      }
      return ret;
    }
    private TopicInfo GetTopicInfo(ushort topicId, TopicIdType topicIdType, bool sendRegister=true) {

Same methods

MsDevice::GetTopicInfo ( Topic tp, bool sendRegister = true ) : TopicInfo
MsDevice::GetTopicInfo ( ushort topicId, TopicIdType topicIdType, bool sendRegister = true ) : TopicInfo