Title: Pass object of abstract class AGIScript instead create script at runtime · Issue #281 · AsterNET/AsterNET · GitHub
Open Graph Title: Pass object of abstract class AGIScript instead create script at runtime · Issue #281 · AsterNET/AsterNET
X Title: Pass object of abstract class AGIScript instead create script at runtime · Issue #281 · AsterNET/AsterNET
Description: If I understand correctly, a class which implements abstract class AGIScript will be created at runtime via Reflection. this is the code in GeneralMappingStrategy.cs uses reflection to create script object: public AGIScript CreateInstanc...
Open Graph Description: If I understand correctly, a class which implements abstract class AGIScript will be created at runtime via Reflection. this is the code in GeneralMappingStrategy.cs uses reflection to create scrip...
X Description: If I understand correctly, a class which implements abstract class AGIScript will be created at runtime via Reflection. this is the code in GeneralMappingStrategy.cs uses reflection to create scrip...
Opengraph URL: https://github.com/AsterNET/AsterNET/issues/281
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pass object of abstract class AGIScript instead create script at runtime","articleBody":"If I understand correctly, a class which implements abstract class `AGIScript` will be created at runtime via Reflection.\r\n\r\nthis is the code in `GeneralMappingStrategy.cs` uses reflection to create script object:\r\n```\r\npublic AGIScript CreateInstance()\r\n {\r\n AGIScript rtn = null;\r\n try\r\n {\r\n if (LoadedAssembly != null)\r\n rtn = (AGIScript)LoadedAssembly.CreateInstance(ClassName);\r\n else\r\n rtn = (AGIScript)Assembly.GetEntryAssembly().CreateInstance(ClassName);\r\n }\r\n catch (Exception ex)\r\n {\r\n\r\n }\r\n return rtn;\r\n }\r\n``` \r\nI want to create a script object by myself or use dependency injection technique, because my script class can be depended on another dependencies.\r\nIs it possible? \r\n\r\nThanks in advanced. ","author":{"url":"https://github.com/ttdat2232","@type":"Person","name":"ttdat2232"},"datePublished":"2024-07-04T03:09:25Z","url":"https://github.com/AsterNET/AsterNET/issues/281"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:2afadcf2-6044-6744-0dfd-5a4ef598805e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9ED8:AE1F3:342164:495899:6AFB562E |
| html-safe-nonce | bb09e735731eb1af589b03743d5c23d885397cf00d520c425552a8a84dce6917 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RUQ4OkFFMUYzOjM0MjE2NDo0OTU4OTk6NkFGQjU2MkUiLCJ2aXNpdG9yX2lkIjoiNDc0MTY1MTQwNDE4MTY4OTkwMiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 965f71162018052054fccc48b0a7e000182c449a0b145c8ce9c19cfbd07d4206 |
| hovercard-subject-tag | issue:2389839294 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/AsterNET/AsterNET/281/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5d84ddf66ba2bb1417982f58f8f4dbd1e9fa8b317d2b7724f5b5ef288f19782/AsterNET/AsterNET/issues/281 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5d84ddf66ba2bb1417982f58f8f4dbd1e9fa8b317d2b7724f5b5ef288f19782/AsterNET/AsterNET/issues/281 |
| og:image:alt | If I understand correctly, a class which implements abstract class AGIScript will be created at runtime via Reflection. this is the code in GeneralMappingStrategy.cs uses reflection to create scrip... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ttdat2232 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7122bb414b542dba14d71a3f0b9f6fd2abce715b9f5912d082800563e6c806d1 |
| turbo-cache-control | no-preview |
| go-import | github.com/AsterNET/AsterNET git https://github.com/AsterNET/AsterNET.git |
| octolytics-dimension-user_id | 18189401 |
| octolytics-dimension-user_login | AsterNET |
| octolytics-dimension-repository_id | 28722690 |
| octolytics-dimension-repository_nwo | AsterNET/AsterNET |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 28722690 |
| octolytics-dimension-repository_network_root_nwo | AsterNET/AsterNET |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | cbf66c024bb6d10e6955baa7413c54cf13a201bb |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width