{"id":25773170,"url":"https://github.com/tinylit/inkslab.expressions","last_synced_at":"2025-02-27T04:38:40.214Z","repository":{"id":202742281,"uuid":"708050936","full_name":"tinylit/inkslab.expressions","owner":"tinylit","description":null,"archived":false,"fork":false,"pushed_at":"2023-10-30T12:13:53.000Z","size":454,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2024-04-26T22:42:22.974Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tinylit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-21T11:27:22.000Z","updated_at":"2024-07-11T03:45:09.425Z","dependencies_parsed_at":null,"dependency_job_id":"a09309a8-2769-407d-adec-9c9cbdce3a7f","html_url":"https://github.com/tinylit/inkslab.expressions","commit_stats":null,"previous_names":["tinylit/inkslab.expressions"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinylit%2Finkslab.expressions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinylit%2Finkslab.expressions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinylit%2Finkslab.expressions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tinylit%2Finkslab.expressions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tinylit","download_url":"https://codeload.github.com/tinylit/inkslab.expressions/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240980152,"owners_count":19888209,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-02-27T04:38:39.592Z","updated_at":"2025-02-27T04:38:40.207Z","avatar_url":"https://github.com/tinylit.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"![Inkslab](inkslab-mini.jpg 'Logo')\n\n![GitHub](https://img.shields.io/github/license/tinylit/inkslab.expressions.svg)\n![language](https://img.shields.io/github/languages/top/tinylit/inkslab.expressions.svg)\n![codeSize](https://img.shields.io/github/languages/code-size/tinylit/inkslab.expressions.svg)\n[![GitHub issues](https://img.shields.io/github/issues-raw/tinylit/inkslab.expressions)](../../issues)\n\n### “Inkslab.Expressions”是什么？\n\nInkslab.Expressions 是一套基于原生Emit指令封装的类型生成器，封装了类似于Expression的表达式语法，简单易用。\n\n### 如何安装？\nFirst, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install [Inkslab.Expressions](https://www.nuget.org/packages/inkslab.expressions/) from the package manager console: \n\n```\nPM\u003e Install-Package Inkslab.Expressions\n```\n\nNuGet 包\n--------\n\n| Package | NuGet | Downloads | Jane Says \u003ckbd\u003eMarkdown\u003c/kbd\u003e |\n| ------- | ----- | --------- | --------- |\n| Inkslab.Expressions | [![Inkslab.Expressions](https://img.shields.io/nuget/v/Inkslab.Expressions.svg)](https://www.nuget.org/packages/Inkslab.Expressions/) | ![Nuget](https://img.shields.io/nuget/dt/Inkslab.Expressions) | Core universal design. |\n| Inkslab.Intercept | [![DeltaExpression.AOP](https://img.shields.io/nuget/v/Inkslab.Intercept.svg)](https://www.nuget.org/packages/Inkslab.Intercept/) | ![Nuget](https://img.shields.io/nuget/dt/Inkslab.Intercept) | AOP framework based on method return types. |\n\n### 如何使用？\n\n* 实现“InterceptAttribute”、“InterceptAsyncAttribute”、“ReturnValueInterceptAttribute”或“ReturnValueInterceptAsyncAttribute”拦截器属性。\n\t- `ReturnValueInterceptAsyncAttribute` 支持返回值类型为`Task\u003cT\u003e`和`ValueTask\u003cT\u003e`的方法。\n\t- `ReturnValueInterceptAttribute` 支持返回值类型为 `T`、`Task\u003cT\u003e`和`ValueTask\u003cT\u003e`的方法。\n\t- `InterceptAsyncAttribute` 支持返回值类型为`Task`、`ValueTask`、`Task\u003cT\u003e`和`ValueTask\u003cT\u003e`的方法。\n\t- `InterceptAttribute` 支持返回值类型为 `void` 的方法。\n\t\u003e 注：文档中的 `T` 是排除 `Task`、`ValueTask`、`Task\u003c\u003e`和`ValueTask\u003c\u003e`类型或声明类型之外的类型。\n\n* 在依赖注入的接口或类中方法，标记相对于的属性。\n* 使用拦截器“UseIntercept”，会自动检测当前服务集合中 **“ServiceDescriptor”** . *“ServiceType”* 服务类，并自动完成类型代理。\n```C#\npublic class Startup {\n\n\tpublic void ConfigureServices(IServiceCollection services) {\n\t\t// 在此语句之前注入的服务实现，会自动生成拦截类。\n\t\tservices.UseIntercept();\n\t}\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinylit%2Finkslab.expressions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftinylit%2Finkslab.expressions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftinylit%2Finkslab.expressions/lists"}