| | | 1 | | namespace ReFlex.Server.Data.Config; |
| | | 2 | | |
| | | 3 | | public class RemoteProcessingServiceSettings |
| | | 4 | | { |
| | 64 | 5 | | public string Address { get; set; } = "http://localhost:50051/"; |
| | | 6 | | |
| | 64 | 7 | | public int NumSkipValues { get; set; } = 0; |
| | | 8 | | |
| | 64 | 9 | | public bool CompleteDataSet { get; set; } = true; |
| | | 10 | | |
| | 64 | 11 | | public bool UseGzipCompression { get; set; } = true; |
| | | 12 | | |
| | 64 | 13 | | public double CutOff { get; set; } = 2.0; |
| | | 14 | | |
| | 64 | 15 | | public double Factor { get; set; } = 100; |
| | | 16 | | |
| | 64 | 17 | | public RemoteProcessingAlgorithm Algorithm { get; set; } = RemoteProcessingAlgorithm.Default; |
| | | 18 | | |
| | | 19 | | public string GetRemoteProcessingServiceSettingsString() |
| | 0 | 20 | | { |
| | 0 | 21 | | var result = $"===== {nameof(RemoteProcessingServiceSettings)} ====={Environment.NewLine}"; |
| | 0 | 22 | | result += $" {nameof(Address)}: {Address} | "; |
| | 0 | 23 | | result += $"{nameof(NumSkipValues)}: {NumSkipValues} | "; |
| | 0 | 24 | | result += $"{nameof(CompleteDataSet)}: {CompleteDataSet}{Environment.NewLine}"; |
| | 0 | 25 | | result += $"{nameof(UseGzipCompression)}: {UseGzipCompression} | "; |
| | 0 | 26 | | result += $"{nameof(Algorithm)}: {Enum.GetName(typeof(RemoteProcessingAlgorithm), Algorithm)} | "; |
| | 0 | 27 | | result += $"{nameof(CutOff)}: {CutOff} | {nameof(Factor)}: {Factor}{Environment.NewLine}"; |
| | 0 | 28 | | return result; |
| | 0 | 29 | | } |
| | | 30 | | } |