{"id":29842803,"url":"https://github.com/psosnicki/pgnotify-net","last_synced_at":"2026-05-07T00:36:45.302Z","repository":{"id":92448304,"uuid":"537146957","full_name":"psosnicki/pgnotify-net","owner":"psosnicki","description":".NET library to easily subscribe and listen PostgreSQL Database real time notifications","archived":false,"fork":false,"pushed_at":"2022-09-17T18:50:55.000Z","size":629,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-29T16:12:57.439Z","etag":null,"topics":["dotnet","pglisten","pgnotify","postgresql","realtime"],"latest_commit_sha":null,"homepage":"","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/psosnicki.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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,"zenodo":null}},"created_at":"2022-09-15T17:57:17.000Z","updated_at":"2024-02-26T19:20:41.000Z","dependencies_parsed_at":"2023-06-03T03:30:12.070Z","dependency_job_id":null,"html_url":"https://github.com/psosnicki/pgnotify-net","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/psosnicki/pgnotify-net","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psosnicki%2Fpgnotify-net","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psosnicki%2Fpgnotify-net/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psosnicki%2Fpgnotify-net/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psosnicki%2Fpgnotify-net/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/psosnicki","download_url":"https://codeload.github.com/psosnicki/pgnotify-net/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/psosnicki%2Fpgnotify-net/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271632767,"owners_count":24793745,"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","status":"online","status_checked_at":"2025-08-22T02:00:08.480Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["dotnet","pglisten","pgnotify","postgresql","realtime"],"created_at":"2025-07-29T15:17:46.045Z","updated_at":"2026-05-07T00:36:45.239Z","avatar_url":"https://github.com/psosnicki.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# .NET library to easily subscribe and listen PostgreSQL Database real time notifications\n\n![build](https://github.com/psosnicki/pgnotify-net/actions/workflows/dotnet.yml/badge.svg)\n\n## Install\n```\nPM\u003e Install-Package PgNotifyNet -Version 1.0.1-beta\n```\n## Example\n\n[Blazor SignalR Postgresql PgNotifyNet sample application](samples/PgNotifyNet.Sample/README.md)\n\n## Sample Code\n\nRegister in container:\n```\nConfigureServices(IServicesCollection servicesCollection)\n{\n        ...\n        services.AddPgNotifyNet(connectionString,\n                o =\u003e o.Trigger (t =\u003e t.OnTable\u003cCategory\u003e(\"categories\").After(Change.Update, Change.Delete))\n                      .Trigger (t =\u003e t.OnTable\u003cUser\u003e(\"users\").After(Change.Insert))\n        ...\n);\n```\nImplement ```IHandleNotification\u003cT\u003e``` and handle notification:\n```\n    public  class FooNotificationHandler : IHandleNotification\u003cCategory\u003e\n    {\n        public async Task OnDataChanged(Category oldData,Category newData, Change change)\n        {\n            //handle data change\n        }\n    }\n```\n\nor subscribe to PgNotificationService ```OnDataChange``` event \n```\n    public FooController(IPgNotificationService notificationService)\n    {\n        notificationService.OnDataChange += (object? sender, OnDataChangeEventArgs e) =\u003e { \n            //handle notification\n        };\n    }\n\n```\n\n\n## License\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsosnicki%2Fpgnotify-net","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpsosnicki%2Fpgnotify-net","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpsosnicki%2Fpgnotify-net/lists"}