コード例 #1
0
 public AnalysysDotNetSdk(ICollecter collecter, string appId)
 {
     this.collecter               = collecter;
     this.appId                   = appId;
     this.egBaseProperties        = new Dictionary <string, object>(3);
     this.xcontextSuperProperties = new Dictionary <string, object>();
     InitBaseProperties();
 }
コード例 #2
0
        /// <summary>
        /// 构造方法
        /// </summary>
        /// <param name="collecter">消息收集器</param>
        /// <param name="appId">用户AppId</param>
        /// <param name="autoDelParam">是否自动删除校验不通过的属性 </param>
        public AnalysysDotNetSdk(ICollecter collecter, string appId, bool autoDelParam)
        {
            if (string.IsNullOrEmpty(appId))
            {
                throw new Exception("appId is empty");
            }

            this.collecter               = collecter ?? throw new Exception("collecter is null");
            this.appId                   = appId;
            this.egBaseProperties        = new Dictionary <string, object>(3);
            this.xcontextSuperProperties = new Dictionary <string, object>();
            this.autoDelParam            = autoDelParam;
            ValidHandle.SetDelNotValidParam(autoDelParam);
            InitBaseProperties();
        }
コード例 #3
0
 /// <summary>
 /// 构造方法
 /// </summary>
 /// <param name="collecter">消息收集器</param>
 /// <param name="appId">用户AppId</param>
 public AnalysysDotNetSdk(ICollecter collecter, string appId) : this(collecter, appId, false)
 {
 }