You will have to manually construct the SNMP v3 message via a constructor such as
Regards,
Lex
public GetRequestMessage(VersionCode version, int messageId, int requestId, OctetString userName, IList<Variable> variables, IPrivacyProvider privacy, int maxMessageSize, ISnmpMessage report)
The context name can be passed via the report message. Or you can make the internal constructor public so as to fully construct the message from scratch.internal GetRequestMessage(VersionCode version, Header header, SecurityParameters parameters, Scope scope, IPrivacyProvider privacy, byte[] length)
As setting context engine ID or context name is not necessary in most cases (they can be received via discovery), there is no simply way to set them except the ways I described above.Regards,
Lex