BlazorChat.Shared 1.0.1

dotnet add package BlazorChat.Shared --version 1.0.1
                    
NuGet\Install-Package BlazorChat.Shared -Version 1.0.1
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="BlazorChat.Shared" Version="1.0.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="BlazorChat.Shared" Version="1.0.1" />
                    
Directory.Packages.props
<PackageReference Include="BlazorChat.Shared" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add BlazorChat.Shared --version 1.0.1
                    
#r "nuget: BlazorChat.Shared, 1.0.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package BlazorChat.Shared@1.0.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=BlazorChat.Shared&version=1.0.1
                    
Install as a Cake Addin
#tool nuget:?package=BlazorChat.Shared&version=1.0.1
                    
Install as a Cake Tool

BlazorChat.Shared

This package contains the shared data models for the BlazorChat ecosystem. It provides the core data structures used for real-time chat communication within Blazor applications.

Usage

These models are utilized by the two main BlazorChat packages:

  • BlazorChat: A standalone, client-side Blazor component that can use an in-memory transport for demoing chat functionality.
  • BlazorChat.Server: A server-side implementation that uses SignalR for real-time communication and can be connected to a persistence layer.

This package serves as a common dependency for the client and server components and is not intended to be used directly unless developing custom integrations.

Core Chat Models

  • ChatMessage: The primary model representing a single message in a conversation.
  • ChatSender: Represents the user who sent a message.
  • ChatReaction: Represents a single reaction (e.g., a thumbs-up) to a message.
  • ChatReactionSummary: Provides an aggregated summary of all reactions for a specific message.
  • ChatTypingInfo: Carries information about a user who is currently typing.
  • UserStatus: An enum representing user presence (e.g., Online, Away, Offline).
  • ChatOperationResult: A generic wrapper for the result of a chat-related action, indicating success or failure.

Theming & Configuration Models

  • ChatColorOptions: A central class for configuring chat component colors and themes.
  • UserStatusColors: Defines the specific colors used for different user statuses.
  • AvatarGradient: Represents a color gradient used for generating user avatars based on their name.
  • AvatarSize: Defines standard pixel sizes for user avatars (e.g., Small, Medium, Large).

For more information, please visit the official project sites:

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net10.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on BlazorChat.Shared:

Package Downloads
BlazorChat

Real-time chat component for Blazor. Context-scoped threads, rich text via BlazorRTE, emoji reactions via BlazorEmo. Community edition — InMemory transport only. Requires BlazorChat.Server (commercial) for production SignalR-backed messaging.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.1 39 2/24/2026
1.0.0 42 2/24/2026