Class GrpcServer
- Namespace
- IdeaStatiCa.Plugin.Grpc
- Assembly
- IdeaStatiCa.Plugin.dll
Server implementation for the Grpc connection.
public class GrpcServer : IGrpcServer, IGrpcCommunicator
Inheritance
Derived
Implements
Inherited Members
Constructors
GrpcServer(IPluginLogger, IGrpcService, IBlobStorageProvider)
Initializes the IdeaStatiCa Grpc server.
public GrpcServer(IPluginLogger logger, IGrpcService grpcService, IBlobStorageProvider blobStorageProvider = null)
Parameters
logger
IPluginLogger-
Logger
grpcService
IGrpcServiceblobStorageProvider
IBlobStorageProvider-
Provider of blob storages
Fields
Logger
public readonly IPluginLogger Logger
Field Value
- IPluginLogger
Properties
ClientID
Returns ID of currently connected client.
public string ClientID { get; }
Property Value
GrpcService
grpc service for bi-directional streaming messaging
public IGrpcService GrpcService { get; }
Property Value
Host
The host
public string Host { get; }
Property Value
Port
Port on which the server will communicate.
public int Port { get; }
Property Value
Methods
StartAsync(string, int)
Starts the server.
public Task StartAsync(string clientId, int port)
Parameters
Returns
StopAsync()
Requests server to shutdown
public Task StopAsync()