public class ElasticSearchConfiguration| ElasticSearchConfiguration | Initializes a new instance of the ElasticSearchConfiguration class |
| ApiKey | API Key (用於 ApiKey Authentication) |
| ApiKeyId | API Key ID (用於 ApiKey Authentication) |
| BatchSize | 批次大小 |
| ConnectionTimeout | 連線逾時時間(秒) |
| DisableCertificateValidation | 是否停用 SSL 憑證驗證 |
| DisablePing | 是否停用連線前的 Ping 檢查 |
| IncludeAllProperties | 是否包含所有屬性 |
| IndexFormat | 索引名稱模板 (支援 NLog Layout 變數) |
| IsExclusiveMode | 是否啟用獨佔模式 |
| Layout | 日誌格式 |
| Password | 密碼 (用於 Basic Authentication) |
| ProjectCode | 專案代碼 (用於索引命名) |
| ServerName | 伺服器名稱 (用於索引命名) |
| Uri | ElasticSearch 伺服器 URI |
| Username | 使用者名稱 (用於 Basic Authentication) |
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object) |
| Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object) |
| GetHashCode | Serves as the default hash function. (Inherited from Object) |
| GetType | Gets the Type of the current instance. (Inherited from Object) |
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object) |
| ToString | Returns a string that represents the current object. (Inherited from Object) |
| Validate | 驗證設定 |
| CloneT |
跨型別複製物件
(Defined by CoreExtension) |
| ToBsonString |
轉換Bson字串
(Defined by SerializeExtend) |
| ToBsonString |
轉換Bson字串
(Defined by SerializeExtend) |
| ToJsonString |
轉換Json字串
(Defined by SerializeExtend) |
| ToJsonString |
轉換Json字串
(Defined by SerializeExtend) |
| ToXmlString |
轉換Xml字串
(Defined by SerializeExtend) |
| WriteJsonFile |
寫入Json格式檔案
(Defined by SerializeExtend) |
| Date | Version | Description |
|---|---|---|
| 2025/12/09 | 25.0.0.0 | 新增 ElasticSearch 支援 |
| 2025/12/10 | 25.0.1.0 | 新增 RequireAuth、DisableCertificateValidation、DisablePing 設定 |
| 2025/12/16 | 25.0.2.0 | 新增獨佔模式設定,移除 RequireAuth 設定 |