{"id":3863,"date":"2026-03-04T13:35:02","date_gmt":"2026-03-04T06:35:02","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=3863"},"modified":"2026-03-04T15:53:48","modified_gmt":"2026-03-04T08:53:48","slug":"directoryaccessservice","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/ax-engine\/remotedirectory\/directoryaccessservice\/","title":{"rendered":"DirectoryAccessService"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\">DirectoryAccessService<\/h2>\n\n\n\n<p>AtlasX.Engine.RemoteDirectory.Services<br>\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e41\u0e25\u0e30\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07 file sources \u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e44\u0e27\u0e49\u0e43\u0e19 FileServer configuration<\/p>\n\n\n\n<p><\/p>\n\n\n\n<p style=\"border-top-left-radius:29px;border-top-right-radius:29px;border-bottom-left-radius:29px;border-bottom-right-radius:29px\">Namespace: AtlasX.Engine.RemoteDirectory.Services<br>Implements: IDirectoryAccessService<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>Constructors<\/strong><\/h3>\n\n\n\n<h4 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>DirectoryAccessService(FileServer)<\/strong><\/h4>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Required<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>fileServerConfigure<\/code><\/td><td><code>FileServer<\/code><\/td><td>Required<\/td><td>Configuration \u0e17\u0e35\u0e48\u0e21\u0e35\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 file sources \u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>Properties<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>FileServerConfigure<\/code><\/td><td><code>FileServer<\/code><\/td><td>Configuration \u0e02\u0e2d\u0e07 file server \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e2d\u0e22\u0e39\u0e48<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading is-style-default\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>Methods<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Return<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>GetFileSource()<\/code><\/td><td><code>DirectoryAccess<\/code><\/td><td>\u0e04\u0e37\u0e19 DirectoryAccess \u0e02\u0e2d\u0e07 default file source<\/td><\/tr><tr><td><code>GetFileSource(String)<\/code><\/td><td><code>DirectoryAccess<\/code><\/td><td>\u0e04\u0e37\u0e19 DirectoryAccess \u0e02\u0e2d\u0e07 file source \u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38<\/td><\/tr><tr><td><code>CreateDirectoryAccess(Dictionary&lt;String, Object&gt;)<\/code><\/td><td><code>DirectoryAccess<\/code><\/td><td>\u0e2a\u0e23\u0e49\u0e32\u0e07 DirectoryAccess \u0e08\u0e32\u0e01 parameters<\/td><\/tr><tr><td><code>Dispose()<\/code><\/td><td><code>void<\/code><\/td><td>\u0e15\u0e31\u0e14\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e41\u0e25\u0e30\u0e04\u0e37\u0e19 resources<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading is-style-default\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>Methods<\/strong> <strong>Details<\/strong><\/h3>\n\n\n\n<div class=\"wp-block-group has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-12dd3699 wp-block-group-is-layout-constrained\">\n<h4 class=\"wp-block-heading\" id=\"GetFileSource\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>GetFileSource()<\/strong><\/h4>\n\n\n\n<p>\u0e04\u0e37\u0e19&nbsp;<code>DirectoryAccess<\/code>&nbsp;\u0e02\u0e2d\u0e07 default file source \u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e19 configuration<\/p>\n\n\n\n<p><strong>Returns:<\/strong>&nbsp;<code>DirectoryAccess<\/code>&#8211; instance \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e44\u0e1f\u0e25\u0e4c\u0e02\u0e2d\u0e07 default file source<br><\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h4 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>GetFileSource(String)<\/strong><\/h4>\n\n\n\n<p>\u0e04\u0e37\u0e19&nbsp;<code>DirectoryAccess<\/code>&nbsp;\u0e02\u0e2d\u0e07 file source \u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38 \u0e42\u0e14\u0e22 cache \u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e44\u0e27\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e04\u0e23\u0e31\u0e49\u0e07\u0e16\u0e31\u0e14\u0e44\u0e1b<br><br><strong>Returns:<\/strong>&nbsp;<code>DirectoryAccess<\/code>&#8211; instance \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e08\u0e31\u0e14\u0e01\u0e32\u0e23\u0e44\u0e1f\u0e25\u0e4c\u0e02\u0e2d\u0e07 file source \u0e17\u0e35\u0e48\u0e23\u0e30\u0e1a\u0e38<br><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Required<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>fileSourceName<\/code><\/td><td><code>string<\/code><\/td><td>Required<\/td><td>\u0e0a\u0e37\u0e48\u0e2d file source \u0e17\u0e35\u0e48\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h4 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>CreateDirectoryAccess(Dictionary&lt;String, Object&gt;)<\/strong><\/h4>\n\n\n\n<p>\u0e2a\u0e23\u0e49\u0e32\u0e07&nbsp;<code>DirectoryAccess<\/code>&nbsp;\u0e08\u0e32\u0e01 parameters \u0e42\u0e14\u0e22 auto-select file source \u0e41\u0e25\u0e30 path \u0e08\u0e32\u0e01 key \u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e43\u0e19 configuration<\/p>\n\n\n\n<p><strong>Returns:<\/strong>&nbsp;<code>DirectoryAccess<\/code>&#8211; instance \u0e17\u0e35\u0e48\u0e15\u0e31\u0e49\u0e07\u0e04\u0e48\u0e32 PathName \u0e15\u0e32\u0e21 parameters \u0e41\u0e25\u0e49\u0e27<br><strong>Remarks:<\/strong>&nbsp;\u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e1e\u0e1a key \u0e02\u0e2d\u0e07 file source \u0e43\u0e19 parameters \u0e08\u0e30\u0e43\u0e0a\u0e49 default file source \u0e41\u0e17\u0e19 \u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e1e\u0e1a key \u0e02\u0e2d\u0e07 path \u0e08\u0e30\u0e43\u0e0a\u0e49 string \u0e27\u0e48\u0e32\u0e07<br><\/p>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Parameter<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Required<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>parameters<\/code><\/td><td><code>Dictionary&lt;string, object&gt;<\/code><\/td><td>Required<\/td><td>Parameters \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e38 file source \u0e41\u0e25\u0e30 path \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49 key \u0e15\u0e32\u0e21&nbsp;<code>FileServer.FileSourceParameter<\/code>&nbsp;\u0e41\u0e25\u0e30&nbsp;<code>FileServer.FilePathParameter<\/code><\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-group has-global-padding is-content-justification-left is-layout-constrained wp-container-core-group-is-layout-12dd3699 wp-block-group-is-layout-constrained\">\n<h4 class=\"wp-block-heading is-style-default\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>Dispose()<\/strong><\/h4>\n\n\n\n<p>\u0e15\u0e31\u0e14\u0e01\u0e32\u0e23\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d\u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14\u0e41\u0e25\u0e30\u0e04\u0e37\u0e19 resources<\/p>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\">FileSource<\/h2>\n\n\n\n<p>AtlasX.Engine.RemoteDirectory.Models<\/p>\n\n\n\n<p>\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25 credentials \u0e41\u0e25\u0e30 path \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e40\u0e0a\u0e37\u0e48\u0e2d\u0e21\u0e15\u0e48\u0e2d file source<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>Properties<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>RemotePath<\/code><\/td><td><code>string<\/code><\/td><td>UNC path \u0e2b\u0e23\u0e37\u0e2d local path \u0e02\u0e2d\u0e07 file source<\/td><\/tr><tr><td><code>Username<\/code><\/td><td><code>string<\/code><\/td><td>\u0e0a\u0e37\u0e48\u0e2d\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a authentication<\/td><\/tr><tr><td><code>Password<\/code><\/td><td><code>string<\/code><\/td><td>\u0e23\u0e2b\u0e31\u0e2a\u0e1c\u0e48\u0e32\u0e19\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a authentication<\/td><\/tr><tr><td><code>Domain<\/code><\/td><td><code>string<\/code><\/td><td>Domain \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a authentication<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n\n\n\n<div class=\"wp-block-group is-layout-flow wp-block-group-is-layout-flow\">\n<h2 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\">FileServer<\/h2>\n\n\n\n<p>AtlasX.Engine.RemoteDirectory.Models<\/p>\n\n\n\n<p>Configuration \u0e2b\u0e25\u0e31\u0e01\u0e02\u0e2d\u0e07 file server \u0e17\u0e35\u0e48\u0e01\u0e33\u0e2b\u0e19\u0e14 file sources \u0e41\u0e25\u0e30 parameter keys \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e43\u0e19 DirectoryAccessService<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" style=\"padding-top:var(--wp--preset--spacing--10);padding-bottom:var(--wp--preset--spacing--10)\"><strong>Properties<\/strong><\/h3>\n\n\n\n<figure class=\"wp-block-table is-style-stripes\"><table><tbody><tr><td><strong>Name<\/strong><\/td><td><strong>Type<\/strong><\/td><td><strong>Description<\/strong><\/td><\/tr><tr><td><code>FileSourceParameter<\/code><\/td><td><code>string<\/code><\/td><td>Key name \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e38 file source \u0e43\u0e19 parameters \u0e02\u0e2d\u0e07&nbsp;<code>CreateDirectoryAccess()<\/code><\/td><\/tr><tr><td><code>FilePathParameter<\/code><\/td><td><code>string<\/code><\/td><td>Key name \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e38 path \u0e43\u0e19 parameters \u0e02\u0e2d\u0e07&nbsp;<code>CreateDirectoryAccess()<\/code><\/td><\/tr><tr><td><code>FileIdParameter<\/code><\/td><td><code>string<\/code><\/td><td>Key name \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e38 file ID \u0e43\u0e19 parameters<\/td><\/tr><tr><td><code>FileListParameter<\/code><\/td><td><code>string<\/code><\/td><td>Key name \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e23\u0e30\u0e1a\u0e38 file list \u0e43\u0e19 parameters<\/td><\/tr><tr><td><code>DefaultFileSource<\/code><\/td><td><code>string<\/code><\/td><td>\u0e0a\u0e37\u0e48\u0e2d file source \u0e17\u0e35\u0e48\u0e43\u0e0a\u0e49\u0e40\u0e1b\u0e47\u0e19\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e44\u0e21\u0e48\u0e23\u0e30\u0e1a\u0e38 file source<\/td><\/tr><tr><td><code>FileSource<\/code><\/td><td><code>Dictionary&lt;string, FileSource&gt;<\/code><\/td><td>\u0e23\u0e32\u0e22\u0e01\u0e32\u0e23 file sources \u0e17\u0e31\u0e49\u0e07\u0e2b\u0e21\u0e14 \u0e42\u0e14\u0e22\u0e43\u0e0a\u0e49\u0e0a\u0e37\u0e48\u0e2d\u0e40\u0e1b\u0e47\u0e19 key<\/td><\/tr><\/tbody><\/table><\/figure>\n<\/div>\n","protected":false},"featured_media":0,"parent":3802,"menu_order":3,"comment_status":"open","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-3863","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=3863"}],"version-history":[{"count":23,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3863\/revisions"}],"predecessor-version":[{"id":3914,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3863\/revisions\/3914"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3802"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=3863"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=3863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}