Code analyzed by Claude. Output is a sequence diagram for Mermaid.js.
sequenceDiagram
participant Client
participant GamesController
participant GamesService
participant GamesContext| using DotNet8Starter.BL.ServiceInterfaces; | |
| using DotNet8Starter.DL.Models; | |
| using Microsoft.AspNetCore.Mvc; | |
| namespace DotNet8Starter.Controllers | |
| { | |
| [Route("api/[controller]")] | |
| [ApiController] | |
| public class ExportToExcelController(IExportToExcelService exportToExcelService) : ControllerBase | |
| { |
| public class AppLogger<T> : IAppLogger<T> where T : class | |
| { | |
| private readonly ILogger<T> _logger; | |
| public AppLogger(ILogger<T> logger) | |
| { | |
| _logger = logger; | |
| } |
| using TestingPractice.Services; | |
| namespace TestingPractice | |
| { | |
| public class Program | |
| { | |
| public static void Main(string[] args) | |
| { | |
| var builder = WebApplication.CreateBuilder(args); |
| using APIDocsRider.DB; | |
| using Microsoft.Data.SqlClient; | |
| using Microsoft.EntityFrameworkCore; | |
| namespace APIDocsRider.BL; | |
| public class WorkerService(ILogger<WorkerService> logger, IServiceProvider serviceProvider) : BackgroundService | |
| { | |
| private readonly IServiceProvider _serviceProvider = serviceProvider; | |
| private readonly ILogger<WorkerService> _logger = logger; |
| namespace AMQSubscriberWorker.Services | |
| { | |
| public interface IOrderService | |
| { | |
| PizzaOrder? DeserializeOrder(string pizzaOrder); | |
| } | |
| } |
This example demonstrates how to handle browser push notifications using vanilla HTML & JavaScript via Web Push API. WebPush API sends messages from the server (backend) to the client (browser/mobile phone). The API uses HTTP2 protocol which requires HTTPS connection (unless you're in localhost) The server sends messages to the client's browser via Firebase Cloud Messaging API (or FCM for short).