本文整理汇总了C#中MsgHeader类的典型用法代码示例。如果您正苦于以下问题:C# MsgHeader类的具体用法?C# MsgHeader怎么用?C# MsgHeader使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MsgHeader类属于命名空间,在下文中一共展示了MsgHeader类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: QueryTimeout
public QueryTimeout(QueryTimeout value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_IsCommand = false;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
}
示例2: Resume
public Resume(Resume value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_IsCommand = true;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
}
示例3: ReportTimeout
public ReportTimeout(ReportTimeout value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_Body = new Body();
m_IsCommand = false;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
}
示例4: ClearEmergency
public ClearEmergency(ClearEmergency value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_Body = new Body();
m_IsCommand = true;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
}
示例5: CreateCommandEvent
public CreateCommandEvent(CreateCommandEvent value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_Body = new Body();
m_IsCommand = true;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
}
示例6: RejectControl
public RejectControl(RejectControl value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_Body = new Body();
m_IsCommand = false;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
}
示例7: QueryEvents
public QueryEvents(QueryEvents value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_Body = new Body();
m_IsCommand = false;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
}
示例8: SetAuthority
public SetAuthority(SetAuthority value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_Body = new Body();
m_IsCommand = true;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
}
示例9: ConfirmEventRequest
public ConfirmEventRequest(ConfirmEventRequest value)
{
/// Initiliaze the protected variables
m_MsgHeader = new MsgHeader();
m_Body = new Body();
m_IsCommand = false;
/// Copy the values
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
}
示例10: QueryRouteInfo
/// <summary>
///
/// </summary>
public void QueryRouteInfo()
{
MsgHeader mh = new MsgHeader();
//参数赋值
mh.MsgID = ConstIDs.O_TDMOM_ROUTE_INFO_REQ;
mh.puData = 0;
mh.DataLen = 0;
mh.MsgLen = (uint)Marshal.SizeOf(mh);
byte[] res_mh = StructConverter.StructToBytes(mh);
//发送
}
示例11: SendIpInfo
/// <summary>
///
/// </summary>
public void SendIpInfo()
{
MsgHeader mh = new MsgHeader();
//参数赋值
mh.MsgID = ConstIDs.O_TDMOM_IP_PORT_CFG;
mh.puData = 0;
mh.DataLen = 0;
mh.MsgLen = (uint)Marshal.SizeOf(mh);
byte[] res_mh = StructConverter.StructToBytes(mh);
IpPortCFCStruct ips = new IpPortCFCStruct();
byte[] strbytes= System.Text.Encoding.Unicode.GetBytes(_configService.ConfigInfos.TermialIP);
Buffer.BlockCopy(strbytes, 0, ips.IpAddr, 0, ips.IpAddr.Length > strbytes.Length ? strbytes.Length : ips.IpAddr.Length);
ips.PortNum = (uint)_configService.ConfigInfos.TerminalPort;
//发送
}
示例12: setAs
public SetAuthority setAs(SetAuthority value)
{
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
return this;
}
示例13: setAs
public ConfirmEventRequest setAs(ConfirmEventRequest value)
{
m_MsgHeader = value.m_MsgHeader;
m_Body = value.m_Body;
return this;
}
示例14: setMsgHeader
public ReportTimeout.MsgHeader setMsgHeader(MsgHeader value)
{
m_HeaderRec = value.getHeaderRec();
m_HeaderRec.setParent(this);
return this;
}
示例15: setMsgHeader
public SetAuthority.MsgHeader setMsgHeader(MsgHeader value)
{
m_HeaderRec = value.getHeaderRec();
m_HeaderRec.setParent(this);
return this;
}