I want to be able to update the production version of a protocol via an automation script.
i.e. Update the version Production:1.0.0 to now be Production:2.0.0
I've tried searching for a method that can do this but haven't been able to. Could anyone advice on how to do this?
Thanks,
Ryan
Hi Ryan,
You can achieve this with the following C# code:
SetDataMinerInfoMessage sDIM = new SetDataMinerInfoMessage()
{
bInfo1 = int.MaxValue,
bInfo2 = 1,
DataMinerID = <YOUR DMAID>,
HostingDataMinerID = <YOUR DMAID>,
IInfo1 = int.MaxValue,
IInfo2 = int.MaxValue,
Sa1 = new SA() { Sa = new string[] { ProtocolName, ProtocolVersion } },
What = /*55*/ (int)NotifyType.SetAsCurrentProtoocol
};engine.SendSLNetSingleResponseMessage(sDIM);