Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months 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 (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-11-24T15:59:50.000Z (about 1 year ago)
- Last Synced: 2024-09-16T11:56:21.147Z (5 months ago)
- Topics: bayeux, bayeux-protocol, cometd, dotnet-core, dotnetcore, netcore, platform-events, salesforce, salesforce-api, salesforce-developers, workbench
- Language: C#
- Size: 238 KB
- Stars: 29
- Watchers: 8
- Forks: 16
- Open Issues: 14
-
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)