https://github.com/kdcllc/cometd.netcore
CometD for use with Salesforce Platform Events
https://github.com/kdcllc/cometd.netcore
bayeux bayeux-protocol cometd dotnet-core dotnetcore netcore platform-events salesforce salesforce-api salesforce-developers workbench
Last synced: about 1 year ago
JSON representation
CometD for use with Salesforce Platform Events
- Host: GitHub
- URL: https://github.com/kdcllc/cometd.netcore
- Owner: kdcllc
- License: mit
- Created: 2018-07-20T19:17:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-11-24T15:59:50.000Z (over 2 years ago)
- Last Synced: 2025-04-19T05:15:40.271Z (about 1 year ago)
- Topics: bayeux, bayeux-protocol, cometd, dotnet-core, dotnetcore, netcore, platform-events, salesforce, salesforce-api, salesforce-developers, workbench
- Language: C#
- Size: 238 KB
- Stars: 30
- Watchers: 7
- Forks: 15
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# CometD for Salesforce Platform events
[](https://raw.githubusercontent.com/kdcllc/cometd-netcore/master/LICENSE)
[](https://ci.appveyor.com/project/kdcllc/cometd-netcore)
[](https://www.nuget.org/packages?q=CometD.NetCore2)

[](https://f.feedz.io/kdcllc/kdcllc/packages/CometD.NetCore2/latest/download)
_Note: Pre-release packages are distributed via [feedz.io](https://f.feedz.io/kdcllc/kcllc/nuget/index.json)._
## Summary
This repo contains the CometD .NET Core implementation of the Java ported code.
- `CometD.NetCore2` - [CometD.org](CometD.org) implementation, supports replay id.
- [CometD.NetCore.Salesforce project](https://github.com/kdcllc/CometD.NetCore.Salesforce) - provides with implementation of this library.
[](https://www.buymeacoffee.com/vyve0og)
## Give a Star! :star:
If you like or are using this project to learn or start your solution, please give it a star. Thanks!
## Install
```bash
dotnet add package CometD.NetCore2
```
## Projects that utilize this library
- [CometD.NetCore.Salesforce](https://github.com/kdcllc/CometD.NetCore.Salesforce) - contais Saleforce Auth utility and implementation for relay id.
- [Bet.BuildingBlocks.SalesforceEventBus](https://github.com/kdcllc/Bet.BuildingBlocks.SalesforceEventBus) - reusable EvenBus for Salesforce.
## Configure Salesforce Developer instance
[Watch: Salesforce Platform Events - Video](https://www.youtube.com/watch?v=L6OWyCfQD6U)
1. Sing up for development sandbox with Saleforce: [https://developer.salesforce.com/signup](https://developer.salesforce.com/signup).
2. Create Connected App in Salesforce.
3. Create a Platform Event.
### Create Connected App in Salesforce
1. Setup -> Quick Find -> manage -> App Manager -> New Connected App.
2. Basic Info:

3. API (Enable OAuth Settings):

4. Retrieve `Consumer Key` and `Consumer Secret` to be used within the Test App
### Create a Platform Event
1. Setup -> Quick Find -> Events -> Platform Events -> New Platform Event:

2. Add Custom Field

(note: use sandbox custom domain for the login to workbench in order to install this app within your production)
Use workbench to test the Event [workbench](https://workbench.developerforce.com/login.php?startUrl=%2Finsert.php)
## OAuth Apps
[Use login instead of test](https://github.com/developerforce/Force.com-Toolkit-for-NET/wiki/Web-Server-OAuth-Flow-Sample#am-i-using-the-test-environment)
## Special thanks to our contributors
- [Martin Podlubny](https://github.com/martin-podlubny)
- [jesbacon](https://github.com/jesbacon)
- [Chris Woolum](https://github.com/cwoolum)
## Related projects
- [Oyatel/CometD.NET](https://github.com/Oyatel/CometD.NET)
- [nthachus/CometD.NET](https://github.com/nthachus/CometD.NET)
- [tdawgy/CometD.NetCore](https://github.com/tdawgy/CometD.NetCore)
- [anthonyreilly/NetCoreForce](https://github.com/anthonyreilly/NetCoreForce)
- [eShopOnContainers](https://github.com/dotnet-architecture/eShopOnContainers)