本文整理汇总了C#中ActiveMQ.OpenWire.OpenWireFormat类的典型用法代码示例。如果您正苦于以下问题:C# OpenWireFormat类的具体用法?C# OpenWireFormat怎么用?C# OpenWireFormat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OpenWireFormat类属于ActiveMQ.OpenWire命名空间,在下文中一共展示了OpenWireFormat类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: TightMarshal2
//
// Write a object instance to data output stream
//
public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) {
base.TightMarshal2(wireFormat, o, dataOut, bs);
RemoveInfo info = (RemoveInfo)o;
TightMarshalCachedObject2(wireFormat, (DataStructure)info.ObjectId, dataOut, bs);
}
示例2: TightUnmarshal
//
// Un-marshal an object instance from the data input stream
//
public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs)
{
base.TightUnmarshal(wireFormat, o, dataIn, bs);
ConsumerInfo info = (ConsumerInfo)o;
info.ConsumerId = (ConsumerId) TightUnmarshalCachedObject(wireFormat, dataIn, bs);
info.Browser = bs.ReadBoolean();
info.Destination = (ActiveMQDestination) TightUnmarshalCachedObject(wireFormat, dataIn, bs);
info.PrefetchSize = dataIn.ReadInt32();
info.MaximumPendingMessageLimit = dataIn.ReadInt32();
info.DispatchAsync = bs.ReadBoolean();
info.Selector = TightUnmarshalString(dataIn, bs);
info.SubscriptionName = TightUnmarshalString(dataIn, bs);
info.NoLocal = bs.ReadBoolean();
info.Exclusive = bs.ReadBoolean();
info.Retroactive = bs.ReadBoolean();
info.Priority = dataIn.ReadByte();
if (bs.ReadBoolean()) {
short size = dataIn.ReadInt16();
BrokerId[] value = new BrokerId[size];
for( int i=0; i < size; i++ ) {
value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs);
}
info.BrokerPath = value;
}
else {
info.BrokerPath = null;
}
info.AdditionalPredicate = (BooleanExpression) TightUnmarshalNestedObject(wireFormat, dataIn, bs);
info.NetworkSubscription = bs.ReadBoolean();
info.OptimizedAcknowledge = bs.ReadBoolean();
info.NoRangeAcks = bs.ReadBoolean();
}
示例3: TightUnmarshal
//
// Un-marshal an object instance from the data input stream
//
public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs)
{
base.TightUnmarshal(wireFormat, o, dataIn, bs);
BrokerInfo info = (BrokerInfo)o;
info.BrokerId = (BrokerId) TightUnmarshalCachedObject(wireFormat, dataIn, bs);
info.BrokerURL = TightUnmarshalString(dataIn, bs);
if (bs.ReadBoolean()) {
short size = dataIn.ReadInt16();
BrokerInfo[] value = new BrokerInfo[size];
for( int i=0; i < size; i++ ) {
value[i] = (BrokerInfo) TightUnmarshalNestedObject(wireFormat,dataIn, bs);
}
info.PeerBrokerInfos = value;
}
else {
info.PeerBrokerInfos = null;
}
info.BrokerName = TightUnmarshalString(dataIn, bs);
info.SlaveBroker = bs.ReadBoolean();
info.MasterBroker = bs.ReadBoolean();
info.FaultTolerantConfiguration = bs.ReadBoolean();
}
示例4: TightMarshal2
//
// Write a object instance to data output stream
//
public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) {
base.TightMarshal2(wireFormat, o, dataOut, bs);
IntegerResponse info = (IntegerResponse)o;
dataOut.Write(info.Result);
}
示例5: TightMarshal2
//
// Write a object instance to data output stream
//
public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) {
base.TightMarshal2(wireFormat, o, dataOut, bs);
JournalTrace info = (JournalTrace)o;
TightMarshalString2(info.Message, dataOut, bs);
}
示例6: TightMarshal2
//
// Write a object instance to data output stream
//
public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) {
base.TightMarshal2(wireFormat, o, dataOut, bs);
ControlCommand info = (ControlCommand)o;
TightMarshalString2(info.Command, dataOut, bs);
}
示例7: TightMarshal1
//
// Write the booleans that this object uses to a BooleanStream
//
public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) {
ShutdownInfo info = (ShutdownInfo)o;
int rc = base.TightMarshal1(wireFormat, info, bs);
return rc + 0;
}
示例8: TightMarshal1
//
// Write the booleans that this object uses to a BooleanStream
//
public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) {
ActiveMQTempDestination info = (ActiveMQTempDestination)o;
int rc = base.TightMarshal1(wireFormat, info, bs);
return rc + 0;
}
示例9: TightMarshal2
//
// Write a object instance to data output stream
//
public override void TightMarshal2(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut, BooleanStream bs) {
base.TightMarshal2(wireFormat, o, dataOut, bs);
ActiveMQDestination info = (ActiveMQDestination)o;
TightMarshalString2(info.PhysicalName, dataOut, bs);
}
示例10: TightMarshal1
//
// Write the booleans that this object uses to a BooleanStream
//
public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs) {
LastPartialCommand info = (LastPartialCommand)o;
int rc = base.TightMarshal1(wireFormat, info, bs);
return rc + 0;
}
示例11: TightUnmarshal
//
// Un-marshal an object instance from the data input stream
//
public override void TightUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn, BooleanStream bs)
{
base.TightUnmarshal(wireFormat, o, dataIn, bs);
ConnectionInfo info = (ConnectionInfo)o;
info.ConnectionId = (ConnectionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs);
info.ClientId = TightUnmarshalString(dataIn, bs);
info.Password = TightUnmarshalString(dataIn, bs);
info.UserName = TightUnmarshalString(dataIn, bs);
if (bs.ReadBoolean()) {
short size = dataIn.ReadInt16();
BrokerId[] value = new BrokerId[size];
for( int i=0; i < size; i++ ) {
value[i] = (BrokerId) TightUnmarshalNestedObject(wireFormat,dataIn, bs);
}
info.BrokerPath = value;
}
else {
info.BrokerPath = null;
}
info.BrokerMasterConnector = bs.ReadBoolean();
info.Manageable = bs.ReadBoolean();
}
示例12: TightMarshalNestedObject1
protected virtual int TightMarshalNestedObject1(
OpenWireFormat wireFormat,
DataStructure o,
BooleanStream bs)
{
return wireFormat.TightMarshalNestedObject1(o, bs);
}
示例13: TightUnmarshalNestedObject
protected virtual DataStructure TightUnmarshalNestedObject(
OpenWireFormat wireFormat,
BinaryReader dataIn,
BooleanStream bs)
{
return wireFormat.TightUnmarshalNestedObject(dataIn, bs);
}
示例14: TightUnmarshal
public virtual void TightUnmarshal(
OpenWireFormat wireFormat,
Object o,
BinaryReader dataIn,
BooleanStream bs)
{
}
示例15: TightMarshal2
public virtual void TightMarshal2(
OpenWireFormat wireFormat,
Object o,
BinaryWriter dataOut,
BooleanStream bs)
{
}