Wombat.MamaMsg.addChar C# (CSharp) Method

addChar() public method

Add a new char field.
public addChar ( string name, ushort fid, char val ) : void
name string
fid ushort
val char
return void
        public void addChar(
			string name,
			ushort fid,
			char val)
        {
            EnsurePeerCreated();
            int code = NativeMethods.mamaMsg_addChar(nativeHandle, name, fid,val);
            CheckResultCode(code);
        }

Usage Example

 public void testCorrShortSaleCircuitBreaker()
 {
     mMsg = new MamaMsg();
     addMamaHeaderFields(mMsg,
                         (byte)mamaMsgType.MAMA_MSG_TYPE_CORRECTION,
                         (byte)mamaMsgStatus.MAMA_MSG_STATUS_OK,
                         (uint)1);
     mMsg.addChar("wCorrShortSaleCircuitBreaker", 5250, 'C');
     ticker.callMamdaOnMsg(mSubscription, mMsg);
     Assert.AreEqual('C', ticker.myCorrShortSaleCircuitBreaker);
 }
All Usage Examples Of Wombat.MamaMsg::addChar
MamaMsg