예제 #1
0
 public override async Task <DumpMetaData> GetDumpMetaDataAsync()
 {
     if (_dumpMetaData == null)
     {
         _dumpMetaData = new DumpMetaData();
         _dumpMetaData.ApplicationName    = StoreUtil.GetAppName();
         _dumpMetaData.ApplicationVersion = StoreUtil.GetAppVersion();
         _dumpMetaData.DeviceId           = StoreUtil.GetComputerName();
         _dumpMetaData.UserId             = await StoreUtil.GetUserNameAsync();
     }
     return(_dumpMetaData);
 }
예제 #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);
        }