Casts a DMS message array to the specified ResponseMessage type.
public static IEnumerable<T> CastDMSMessage<T>(DMSMessage[] response)
var message = new GetInfoMessage { DataMinerID = -1, HostingDataMinerID = -1, Type = Protocols }; var response = engine.SendSLNetMessage(message); // DMSMessage[] return DmsMessageExtensions.CastDMSMessage<GetProtocolsResponseMessage>(response); // IEnumerable<GetProtocolsResponseMessage>
Last updated 1 year ago