public RequestSender(uint processId, EventHubsConnections connections, ILogger logger, DataContractSerializer payloadSerializer, FunctionsHostConfiguration configuration) : base(processId, connections, logger, payloadSerializer, configuration) { this.processId = processId; doorbell = connections.GetDoorbellSender(processId); }
public RemoteSender(uint processId, uint destination, EventHubsConnections connections, ILogger logger, DataContractSerializer payloadSerializer, FunctionsHostConfiguration configuration, DateTime deploymentTimestamp) : base(destination, connections, logger, payloadSerializer, configuration) { this.processId = processId; this.deploymentTimestamp = deploymentTimestamp; doorbell = connections.GetDoorbellSender(destination); }
public async Task RingMyself() { var message = new DoorbellMessage() { ProcessId = processId, Guid = Guid.NewGuid() }; var messageBytes = DoorbellMessage.Serialize(message); var sender = Connections.GetDoorbellSender(processId); await sender.SendAsync(new EventData(messageBytes)); }