💥 Rename Pusher to Ring
This commit is contained in:
@@ -26,7 +26,7 @@ public class ChatRoomController(
|
||||
FileService.FileServiceClient files,
|
||||
FileReferenceService.FileReferenceServiceClient fileRefs,
|
||||
ActionLogService.ActionLogServiceClient als,
|
||||
PusherService.PusherServiceClient pusher,
|
||||
RingService.RingServiceClient pusher,
|
||||
AccountClientHelper accountsHelper
|
||||
) : ControllerBase
|
||||
{
|
||||
|
@@ -202,7 +202,7 @@ public partial class ChatService(
|
||||
message.ChatRoom = room;
|
||||
|
||||
using var scope = scopeFactory.CreateScope();
|
||||
var scopedNty = scope.ServiceProvider.GetRequiredService<PusherService.PusherServiceClient>();
|
||||
var scopedNty = scope.ServiceProvider.GetRequiredService<RingService.RingServiceClient>();
|
||||
var scopedCrs = scope.ServiceProvider.GetRequiredService<ChatRoomService>();
|
||||
|
||||
var members = await scopedCrs.ListRoomMembers(room.Id);
|
||||
|
@@ -6,8 +6,8 @@ using Grpc.Core;
|
||||
|
||||
namespace DysonNetwork.Sphere.Connection;
|
||||
|
||||
public class WebSocketHandlerGrpc(PusherService.PusherServiceClient pusher, ChatRoomService crs, ChatService cs)
|
||||
: PusherHandlerService.PusherHandlerServiceBase
|
||||
public class WebSocketHandlerGrpc(RingService.RingServiceClient pusher, ChatRoomService crs, ChatService cs)
|
||||
: RingHandlerService.RingHandlerServiceBase
|
||||
{
|
||||
public override async Task<Empty> ReceiveWebSocketPacket(
|
||||
ReceiveWebSocketPacketRequest request,
|
||||
|
@@ -25,7 +25,7 @@ public partial class PostService(
|
||||
ILogger<PostService> logger,
|
||||
FileService.FileServiceClient files,
|
||||
FileReferenceService.FileReferenceServiceClient fileRefs,
|
||||
PusherService.PusherServiceClient pusher,
|
||||
RingService.RingServiceClient pusher,
|
||||
PollService polls,
|
||||
Publisher.PublisherService ps,
|
||||
WebReaderService reader
|
||||
@@ -165,7 +165,7 @@ public partial class PostService(
|
||||
var sender = post.Publisher;
|
||||
using var scope = factory.CreateScope();
|
||||
var pub = scope.ServiceProvider.GetRequiredService<Publisher.PublisherService>();
|
||||
var nty = scope.ServiceProvider.GetRequiredService<PusherService.PusherServiceClient>();
|
||||
var nty = scope.ServiceProvider.GetRequiredService<RingService.RingServiceClient>();
|
||||
var accounts = scope.ServiceProvider.GetRequiredService<AccountService.AccountServiceClient>();
|
||||
try
|
||||
{
|
||||
@@ -534,7 +534,7 @@ public partial class PostService(
|
||||
{
|
||||
using var scope = factory.CreateScope();
|
||||
var pub = scope.ServiceProvider.GetRequiredService<Publisher.PublisherService>();
|
||||
var nty = scope.ServiceProvider.GetRequiredService<PusherService.PusherServiceClient>();
|
||||
var nty = scope.ServiceProvider.GetRequiredService<RingService.RingServiceClient>();
|
||||
var accounts = scope.ServiceProvider.GetRequiredService<AccountService.AccountServiceClient>();
|
||||
try
|
||||
{
|
||||
@@ -937,7 +937,7 @@ public partial class PostService(
|
||||
{
|
||||
using var scope = factory.CreateScope();
|
||||
var pub = scope.ServiceProvider.GetRequiredService<Publisher.PublisherService>();
|
||||
var nty = scope.ServiceProvider.GetRequiredService<PusherService.PusherServiceClient>();
|
||||
var nty = scope.ServiceProvider.GetRequiredService<RingService.RingServiceClient>();
|
||||
var accounts = scope.ServiceProvider.GetRequiredService<AccountService.AccountServiceClient>();
|
||||
var accountsHelper = scope.ServiceProvider.GetRequiredService<AccountClientHelper>();
|
||||
try
|
||||
|
@@ -26,7 +26,7 @@ builder.Services.AddAppAuthentication();
|
||||
builder.Services.AddAppSwagger();
|
||||
builder.Services.AddDysonAuth();
|
||||
builder.Services.AddAccountService();
|
||||
builder.Services.AddPusherService();
|
||||
builder.Services.AddRingService();
|
||||
builder.Services.AddDriveService();
|
||||
|
||||
// Add flush handlers and websocket handlers
|
||||
|
@@ -13,7 +13,7 @@ public class PublisherSubscriptionService(
|
||||
PostService ps,
|
||||
IStringLocalizer<NotificationResource> localizer,
|
||||
ICacheService cache,
|
||||
PusherService.PusherServiceClient pusher,
|
||||
RingService.RingServiceClient pusher,
|
||||
AccountService.AccountServiceClient accounts
|
||||
)
|
||||
{
|
||||
|
@@ -10,7 +10,7 @@ namespace DysonNetwork.Sphere.Realm;
|
||||
|
||||
public class RealmService(
|
||||
AppDatabase db,
|
||||
PusherService.PusherServiceClient pusher,
|
||||
RingService.RingServiceClient pusher,
|
||||
AccountService.AccountServiceClient accounts,
|
||||
IStringLocalizer<NotificationResource> localizer,
|
||||
AccountClientHelper accountsHelper,
|
||||
|
Reference in New Issue
Block a user