private IInvocationStartRequested CreateInvocationTarget(IProvidedMethodReference reference, IClientConnection sourceConnection) { return(_protocolMessageFactory.CreateInvocationStartRequested( reference.ProvidedService.ServiceId, reference.MethodId, reference.ProvidedService.ServiceAlias, sourceConnection.Info.ApplicationId, sourceConnection.Id)); }
public IBrokerToClientRequest DeserializeBrokerToClientRequest(IPooledBuffer message) { using (var envelope = BrokerToClientRequestEnvelope.Rent()) { envelope.MergeFrom(message); switch (envelope.PayloadCase) { case BrokerToClientRequestEnvelope.PayloadOneofCase.InvocationStartRequested: var msg = envelope.InvocationStartRequested; return(_messageFactory.CreateInvocationStartRequested( msg.ServiceId.ConvertFromProtoStrict(), msg.MethodId.ConvertFromProtoStrict(), msg.ServiceAlias.ConvertFromProto(), msg.ConsumerApplicationId.ConvertFromProtoStrict(), msg.ConsumerConnectionId.ConvertFromProtoStrict())); default: throw new InvalidOperationException(); } } }