개발 중
This commit is contained in:
@@ -53,7 +53,7 @@ namespace UVC.Data.Http
|
||||
/// // 데이터 처리 로직
|
||||
/// ULog.Debug($"데이터 수신: {data?.ToString() ?? "null"}");
|
||||
/// });
|
||||
/// httpFetcher.Add("dataRequest", singleRequest);
|
||||
/// httpFetcher.AddChild("dataRequest", singleRequest);
|
||||
///
|
||||
/// // 반복 요청 설정 및 등록
|
||||
/// var repeatingRequest = new HttpRequestConfig("https://api.example.com/status")
|
||||
@@ -63,7 +63,7 @@ namespace UVC.Data.Http
|
||||
/// ULog.Debug($"상태 업데이트: {data?.ToString() ?? "null"}");
|
||||
/// })
|
||||
/// .SetRepeat(true, 0, 5000); // 5초마다 무한 반복
|
||||
/// httpFetcher.Add("statusMonitor", repeatingRequest);
|
||||
/// httpFetcher.AddChild("statusMonitor", repeatingRequest);
|
||||
///
|
||||
/// // 응답 분할 요청 설정 (예: 응답이 {"AGV": [...], "ALARM": [...]} 형태)
|
||||
/// // 각 키에 맞는 DataMapper와 Validator를 준비합니다.
|
||||
@@ -76,7 +76,7 @@ namespace UVC.Data.Http
|
||||
/// .SetSplitResponseByKey(true) // 응답을 키별로 분할
|
||||
/// .AddSplitConfig("AGV", agvMapper) // "AGV" 키에 대한 매퍼 설정
|
||||
/// .AddSplitConfig("ALARM", alarmMapper); // "ALARM" 키에 대한 매퍼 설정
|
||||
/// httpFetcher.Add("baseInfo", splitRequest);
|
||||
/// httpFetcher.AddChild("baseInfo", splitRequest);
|
||||
///
|
||||
/// // 요청 실행
|
||||
/// await httpFetcher.Excute("dataRequest"); // 단일 실행
|
||||
@@ -93,7 +93,7 @@ namespace UVC.Data.Http
|
||||
/// httpFetcher.StopRepeat("statusMonitor");
|
||||
///
|
||||
/// // 더 이상 필요없는 요청 제거
|
||||
/// httpFetcher.Remove("dataRequest");
|
||||
/// httpFetcher.RemoveChild("dataRequest");
|
||||
/// </code>
|
||||
/// </example>
|
||||
public class HttpDataFetcher
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace UVC.Data.Mqtt
|
||||
/// var mqttReceiver = new MqttDataReceiver("mqtt.eclipseprojects.io", 1883);
|
||||
///
|
||||
/// // 6. 파이프라인 정보 추가
|
||||
/// mqttReceiver.Add(pipelineInfo);
|
||||
/// mqttReceiver.AddChild(pipelineInfo);
|
||||
///
|
||||
/// // 7. 파이프라인 실행
|
||||
/// mqttReceiver.Start();
|
||||
|
||||
@@ -23,11 +23,11 @@ namespace UVC.Data
|
||||
/// <param name="url">저장할 URL 문자열</param>
|
||||
/// <example>
|
||||
/// <code>
|
||||
/// URLList.Add("google", "https://www.google.com");
|
||||
/// URLList.Add("naver", "https://www.naver.com");
|
||||
/// URLList.AddChild("google", "https://www.google.com");
|
||||
/// URLList.AddChild("naver", "https://www.naver.com");
|
||||
///
|
||||
/// // 기존 키의 URL 업데이트
|
||||
/// URLList.Add("google", "https://www.google.co.kr");
|
||||
/// URLList.AddChild("google", "https://www.google.co.kr");
|
||||
/// </code>
|
||||
/// </example>
|
||||
public static void Add(string key, string url)
|
||||
@@ -48,13 +48,13 @@ namespace UVC.Data
|
||||
/// <param name="key">제거할 URL의 키</param>
|
||||
/// <example>
|
||||
/// <code>
|
||||
/// URLList.Add("temp", "https://www.temp.com");
|
||||
/// URLList.AddChild("temp", "https://www.temp.com");
|
||||
///
|
||||
/// // URL 제거
|
||||
/// URLList.Remove("temp");
|
||||
/// URLList.RemoveChild("temp");
|
||||
///
|
||||
/// // 존재하지 않는 키 제거 시도(아무 일도 발생하지 않음)
|
||||
/// URLList.Remove("nonexistent");
|
||||
/// URLList.RemoveChild("nonexistent");
|
||||
/// </code>
|
||||
/// </example>
|
||||
public static void Remove(string key)
|
||||
@@ -72,7 +72,7 @@ namespace UVC.Data
|
||||
/// <returns>키가 존재하면 true, 그렇지 않으면 false</returns>
|
||||
/// <example>
|
||||
/// <code>
|
||||
/// URLList.Add("github", "https://github.com");
|
||||
/// URLList.AddChild("github", "https://github.com");
|
||||
///
|
||||
/// // 키 존재 여부 확인
|
||||
/// if(URLList.ContainsKey("github"))
|
||||
@@ -98,7 +98,7 @@ namespace UVC.Data
|
||||
/// <returns>키에 해당하는 URL 또는 키가 존재하지 않을 경우 null</returns>
|
||||
/// <example>
|
||||
/// <code>
|
||||
/// URLList.Add("youtube", "https://www.youtube.com");
|
||||
/// URLList.AddChild("youtube", "https://www.youtube.com");
|
||||
///
|
||||
/// // URL 가져오기
|
||||
/// string youtubeUrl = URLList.Get("youtube");
|
||||
|
||||
Reference in New Issue
Block a user