Show / Hide Table of Contents

Class MessagingManager

Inheritance
System.Object
MessagingManager
Namespace: Volo.Chat.Messages
Assembly: Volo.Chat.Domain.dll
Syntax
public class MessagingManager : DomainService

Constructors

MessagingManager(IMessageRepository, IUserMessageRepository, IChatUserLookupService, IConversationRepository, ICurrentUser)

Declaration
public MessagingManager(IMessageRepository messageRepository, IUserMessageRepository userMessageRepository, IChatUserLookupService chatUserLookupService, IConversationRepository conversationRepository, ICurrentUser currentUser)
Parameters
Type Name Description
IMessageRepository messageRepository
IUserMessageRepository userMessageRepository
IChatUserLookupService chatUserLookupService
IConversationRepository conversationRepository
ICurrentUser currentUser

Properties

CurrentUser

Declaration
public ICurrentUser CurrentUser { get; }
Property Value
Type Description
ICurrentUser

Methods

CreateNewMessage(Guid, Guid, String)

Declaration
public Task CreateNewMessage(Guid senderId, Guid receiverId, string messageText)
Parameters
Type Name Description
Guid senderId
Guid receiverId
System.String messageText
Returns
Type Description
Task

ReadMessagesAsync(Guid, Int32, Int32)

Declaration
public Task<List<MessageWithDetails>> ReadMessagesAsync(Guid targetUserId, int skipCount, int maxResultCount)
Parameters
Type Name Description
Guid targetUserId
System.Int32 skipCount
System.Int32 maxResultCount
Returns
Type Description
Task<List<MessageWithDetails>>
Back to top Powered by Volosoft