当前位置: 首页>>代码示例>>C#>>正文


C# OpenWire.OpenWireFormat类代码示例

本文整理汇总了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);

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:RemoveInfoMarshaller.cs

示例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();

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:38,代码来源:ConsumerInfoMarshaller.cs

示例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();

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:28,代码来源:BrokerInfoMarshaller.cs

示例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);

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:IntegerResponseMarshaller.cs

示例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);

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:JournalTraceMarshaller.cs

示例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);

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:ControlCommandMarshaller.cs

示例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;
    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:ShutdownInfoMarshaller.cs

示例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;
    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:ActiveMQTempDestinationMarshaller.cs

示例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);

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:ActiveMQDestinationMarshaller.cs

示例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;
    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:10,代码来源:LastPartialCommandMarshaller.cs

示例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();

    }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:28,代码来源:ConnectionInfoMarshaller.cs

示例12: TightMarshalNestedObject1

 protected virtual int TightMarshalNestedObject1(
     OpenWireFormat wireFormat,
     DataStructure o,
     BooleanStream bs)
 {
     return wireFormat.TightMarshalNestedObject1(o, bs);
 }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:7,代码来源:BaseDataStreamMarshaller.cs

示例13: TightUnmarshalNestedObject

 protected virtual DataStructure TightUnmarshalNestedObject(
     OpenWireFormat wireFormat,
     BinaryReader dataIn,
     BooleanStream bs)
 {
     return wireFormat.TightUnmarshalNestedObject(dataIn, bs);
 }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:7,代码来源:BaseDataStreamMarshaller.cs

示例14: TightUnmarshal

 public virtual void TightUnmarshal(
     OpenWireFormat wireFormat,
     Object o,
     BinaryReader dataIn,
     BooleanStream bs)
 {
 }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:7,代码来源:BaseDataStreamMarshaller.cs

示例15: TightMarshal2

 public virtual void TightMarshal2(
     OpenWireFormat wireFormat,
     Object o,
     BinaryWriter dataOut,
     BooleanStream bs)
 {
 }
开发者ID:JianwenSun,项目名称:mono-soc-2007,代码行数:7,代码来源:BaseDataStreamMarshaller.cs


注:本文中的ActiveMQ.OpenWire.OpenWireFormat类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。