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); }
public override Configuration CreateDefaultConfiguration() { var configuration = new Configuration(); configuration.LoggingEnabled = true; configuration.ApplicationName = StoreUtil.GetAppName(); var fileListener = new ListenerConfiguration(); fileListener.Name = "App"; fileListener.Type = typeof(FileListener).AssemblyQualifiedName; configuration.Listeners.Add(fileListener); return(configuration); }