/// <summary> /// Sends RPC response to the client /// </summary> /// <param name="sessionContext">The session context of the RPC response to send</param> /// <param name="messageToSend">The RPC response to send</param> /// <exception cref="ArgumentNullException">Thrown when sessionContext or messageToSend is null.</exception> public void SendRpcCallResponse(SamrServerSessionContext sessionContext, SamrResponseStub messageToSend) { CheckIfSessionContextIsNull(sessionContext); if (messageToSend == null) { throw new ArgumentNullException("messageToSend"); } rpceLayerServer.SendResponse(sessionContext.RpceLayerSessionContext, messageToSend.Encode(sessionContext)); }
/// <summary> /// Sends RPC response to the client /// </summary> /// <param name="sessionContext">The session context of the RPC response to send</param> /// <param name="messageToSend">The RPC response to send</param> /// <exception cref="ArgumentNullException"> /// Thrown when sessionContext or messageToSend is null. /// </exception> public void SendRpcCallResponse(LsaServerSessionContext sessionContext, LsaResponseStub messageToSend) { CheckIfSessionContextIsNull(sessionContext); if (messageToSend == null) { throw new ArgumentNullException("messageToSend"); } sessionContext.UpdateSessionContextWithMessageSent(messageToSend); rpceLayerServer.SendResponse(sessionContext.RpceLayerSessionContext, messageToSend.Encode(sessionContext)); }