- Startup.cs: Configures services and the request pipeline.
- Program.cs: Entry point for the .NET application.
- EventHub.cs: SignalR hub for real-time communication.
- ApplicationDbContext.cs: Entity Framework Core DbContext.
- Repositories/: Data access layer.
- Services/: Business logic layer.
- BlockchainHub.cs: SignalR hub for blockchain-related real-time updates.
- BlockchainHub.cs: A SignalR hub designed to handle real-time communication for blockchain-related events, such as new blocks and transactions. This hub pushes updates to all connected clients whenever a new block or transaction is detected.
- Configure SignalR: Ensure SignalR is properly set up in your application.
- Trigger Events: Use the
BlockchainHub
service to notify clients of new blockchain events. - Client-Side Handling: Connect to the
BlockchainHub
from your client applications and handle incoming events.
- Restore Packages
- Apply Migrations
- Run the Application
- Access the Application
- SignalR Connection Issues: Ensure the SignalR server is running and accessible from the client. Verify CORS settings and transport configuration.
- Database Connection Issues: Check your connection strings and ensure the database server is reachable.
- Port Conflicts: Ensure that the ports used by Node.js and .NET Core are not conflicting with other services.