示例#1
0
        public override Configuration CreateDefaultConfiguration()
        {
            var configuration = new Configuration();

            configuration.LoggingEnabled  = true;
            configuration.ApplicationName = PhoneUtil.GetAppTitle();
            var dbListener = new ListenerConfiguration();

            dbListener.Name = "App";
            dbListener.Type = typeof(DbListener).AssemblyQualifiedName;
            configuration.Listeners.Add(dbListener);
            return(configuration);
        }
示例#2
0
        public override Task <DumpMetaData> GetDumpMetaDataAsync()
        {
            var task = Task.Factory.StartNew(() =>
            {
                if (_dumpMetaData == null)
                {
                    _dumpMetaData = new DumpMetaData();
                    _dumpMetaData.ApplicationName    = PhoneUtil.GetAppTitle();
                    _dumpMetaData.ApplicationVersion = PhoneUtil.GetAppVersion();
                    _dumpMetaData.DeviceId           = GetDeviceId();
                    _dumpMetaData.UserId             = GetUserId();
                }
                return(_dumpMetaData);
            });

            return(task);
        }