{"id":18716535,"url":"https://github.com/949886/eventbus","last_synced_at":"2026-05-05T04:09:33.321Z","repository":{"id":96577226,"uuid":"159744173","full_name":"949886/EventBus","owner":"949886","description":"Simple event system implementation like Java EventBus.","archived":false,"fork":false,"pushed_at":"2023-08-24T06:57:27.000Z","size":16,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T12:49:03.043Z","etag":null,"topics":["csharp","event-system","eventbus","unity","unity3d"],"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/949886.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":"2018-11-30T00:11:19.000Z","updated_at":"2023-10-18T09:02:52.000Z","dependencies_parsed_at":"2025-02-19T01:41:33.770Z","dependency_job_id":"1acac780-3afc-4627-bba0-5fb272e21df3","html_url":"https://github.com/949886/EventBus","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/949886/EventBus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/949886%2FEventBus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/949886%2FEventBus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/949886%2FEventBus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/949886%2FEventBus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/949886","download_url":"https://codeload.github.com/949886/EventBus/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/949886%2FEventBus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32634772,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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":["csharp","event-system","eventbus","unity","unity3d"],"created_at":"2024-11-07T13:13:00.525Z","updated_at":"2026-05-05T04:09:33.316Z","avatar_url":"https://github.com/949886.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EventBus\n\nSimple implementation just like java EventBus.\n\n``` C#\nprivate void Start()\n{\n    EventBus.Default.Register(this);\n}\n\nprivate void OnDestroy()\n{\n    EventBus.Default.Unregister(this);\n}\n\n[Subscribe(ThreadMode.MAIN)]\nprivate void HandleEvent(ShootMessage message)\n{\n    /* do something when shooting on main thread */\n}\n\n[Subscribe]\nprivate void HandleEventSync(ShootMessage message)\n{\n    /* do something when shooting in the same thread */\n}\n\n[Subscribe(ThreadMode.BACKGROUND)]\nprivate void HandleEventAsync(ShootMessage message)\n{\n    /* do something when shooting on background thread */\n}\n\npublic void Update()\n{\n    // Trigger event.\n    EventBus.Default.Post(new ShootMessage(/*args*/));\n}\n\n[Subscribe(ThreadMode.BACKGROUND)]\nprivate void HandleEventAsync(ShootMessage message)\n{\n    /* do something when shooting */\n}\n\npublic void Update()\n{\n    // Triger event.\n    EventBus.Default.Post(new ShootMessage(/*args*/));\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F949886%2Feventbus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F949886%2Feventbus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F949886%2Feventbus/lists"}