/// <summary>Register service method implementations with a service binder. Useful when customizing the service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_JoinChannel, serviceImpl.JoinChannel);
     serviceBinder.AddMethod(__Method_LeaveChannel, serviceImpl.LeaveChannel);
     serviceBinder.AddMethod(__Method_SendMessage, serviceImpl.SendMessage);
     serviceBinder.AddMethod(__Method_Listen, serviceImpl.Listen);
 }
Beispiel #2
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Join, serviceImpl.Join)
            .AddMethod(__Method_MessageHistory, serviceImpl.MessageHistory)
            .AddMethod(__Method_GetChatRooms, serviceImpl.GetChatRooms).Build());
 }
Beispiel #3
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Join, serviceImpl.Join)
            .AddMethod(__Method_Insert, serviceImpl.Insert)
            .AddMethod(__Method_GetAll, serviceImpl.GetAll).Build());
 }
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_JoinChannel, serviceImpl.JoinChannel)
            .AddMethod(__Method_LeaveChannel, serviceImpl.LeaveChannel)
            .AddMethod(__Method_SendMessage, serviceImpl.SendMessage)
            .AddMethod(__Method_Listen, serviceImpl.Listen).Build());
 }
Beispiel #5
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Ping, serviceImpl.Ping)
            .AddMethod(__Method_InsertMessage, serviceImpl.InsertMessage)
            .AddMethod(__Method_GetLatestMessages, serviceImpl.GetLatestMessages)
            .AddMethod(__Method_MuteUser, serviceImpl.MuteUser)
            .AddMethod(__Method_GetMutedUsers, serviceImpl.GetMutedUsers)
            .AddMethod(__Method_UnMuteUser, serviceImpl.UnMuteUser)
            .AddMethod(__Method_GetMessagesOnParams, serviceImpl.GetMessagesOnParams).Build());
 }
Beispiel #6
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_chat, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::Com.Example.Grpc.Chat.ChatMessage, global::Com.Example.Grpc.Chat.ChatMessageFromServer>(serviceImpl.chat));
     serviceBinder.AddMethod(__Method_onlineStatus, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Proto.ConnectionStatus, global::Com.Example.Grpc.Chat.Empty>(serviceImpl.onlineStatus));
 }
Beispiel #7
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_chat, serviceImpl.chat)
            .AddMethod(__Method_onlineStatus, serviceImpl.onlineStatus).Build());
 }
Beispiel #8
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Join, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::Chat_Project.Message, global::Chat_Project.Message>(serviceImpl.Join));
 }
Beispiel #9
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Join, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::GrpcChat.Message, global::GrpcChat.Message>(serviceImpl.Join));
     serviceBinder.AddMethod(__Method_MessageHistory, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::GrpcChat.LookUp, global::GrpcChat.Message>(serviceImpl.MessageHistory));
     serviceBinder.AddMethod(__Method_GetChatRooms, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GrpcChat.LookUp, global::GrpcChat.ChatRooms>(serviceImpl.GetChatRooms));
 }
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_Ping, serviceImpl.Ping)
            .AddMethod(__Method_GetPriceHistoryForItem, serviceImpl.GetPriceHistoryForItem).Build());
 }
Beispiel #11
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_GetChatRooms, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::ChatService.Lookup, global::ChatService.ChatRooms>(serviceImpl.GetChatRooms));
     serviceBinder.AddMethod(__Method_JoinAndWriteMessage, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::ChatService.Message, global::ChatService.Message>(serviceImpl.JoinAndWriteMessage));
     serviceBinder.AddMethod(__Method_ShowMessageHistory, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::ChatService.Lookup, global::ChatService.Message>(serviceImpl.ShowMessageHistory));
 }
Beispiel #12
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_SendMessage, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Message, global::MessageReceived>(serviceImpl.SendMessage));
     serviceBinder.AddMethod(__Method_ChatStream, serviceImpl == null ? null : new grpc::ServerStreamingServerMethod <global::LastMessageId, global::MessagePacket>(serviceImpl.ChatStream));
 }
Beispiel #13
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_SendMessage, serviceImpl.SendMessage)
            .AddMethod(__Method_ChatStream, serviceImpl.ChatStream).Build());
 }
Beispiel #14
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_chatStream, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::Generated.ChatRequest, global::Generated.ChatResponse>(serviceImpl.chatStream));
     serviceBinder.AddMethod(__Method_sendMessage, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::Generated.ChatRequest, global::Generated.Close>(serviceImpl.sendMessage));
 }
Beispiel #15
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static grpc::ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(grpc::ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_JoinCustomerChat, serviceImpl.JoinCustomerChat)
            .AddMethod(__Method_SendMessageToChatRoom, serviceImpl.SendMessageToChatRoom).Build());
 }
Beispiel #16
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_Join, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::ChatServer.Protos.Message, global::ChatServer.Protos.Message>(serviceImpl.Join));
     serviceBinder.AddMethod(__Method_Insert, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::ChatServer.Protos.Message, global::ChatServer.Protos.Empty>(serviceImpl.Insert));
     serviceBinder.AddMethod(__Method_GetAll, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::ChatServer.Protos.Empty, global::ChatServer.Protos.Messages>(serviceImpl.GetAll));
 }
Beispiel #17
0
 /// <summary>Register service method with a service binder with or without implementation. Useful when customizing the  service binding logic.
 /// Note: this method is part of an experimental API that can change or be removed without any prior notice.</summary>
 /// <param name="serviceBinder">Service methods will be bound by calling <c>AddMethod</c> on this object.</param>
 /// <param name="serviceImpl">An object implementing the server-side handling logic.</param>
 public static void BindService(grpc::ServiceBinderBase serviceBinder, ChatServiceBase serviceImpl)
 {
     serviceBinder.AddMethod(__Method_JoinCustomerChat, serviceImpl == null ? null : new grpc::UnaryServerMethod <global::GRPCDemo.JoinCustomerRequest, global::GRPCDemo.JoinCustomerReply>(serviceImpl.JoinCustomerChat));
     serviceBinder.AddMethod(__Method_SendMessageToChatRoom, serviceImpl == null ? null : new grpc::DuplexStreamingServerMethod <global::GRPCDemo.ChatMessage, global::GRPCDemo.ChatMessage>(serviceImpl.SendMessageToChatRoom));
 }
Beispiel #18
0
 /// <summary>Creates service definition that can be registered with a server</summary>
 public static ServerServiceDefinition BindService(ChatServiceBase serviceImpl)
 {
     return(ServerServiceDefinition.CreateBuilder()
            .AddMethod(__Method_chat, serviceImpl.chat).Build());
 }