• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# OpenWireFormat类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中OpenWireFormat的典型用法代码示例。如果您正苦于以下问题:C# OpenWireFormat类的具体用法?C# OpenWireFormat怎么用?C# OpenWireFormat使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



OpenWireFormat类属于命名空间,在下文中一共展示了OpenWireFormat类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: TightMarshal1

        //
        // Write the booleans that this object uses to a BooleanStream
        //
        public override int TightMarshal1(OpenWireFormat wireFormat, Object o, BooleanStream bs)
        {

            int rc = base.TightMarshal1(wireFormat, o, bs);

            return rc + 0;
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:10,代码来源:ActiveMQTextMessageMarshaller.cs


示例2: LooseUnmarshal

        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            IntegerResponse info = (IntegerResponse)o;
            info.Result = dataIn.ReadInt32();
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:IntegerResponseMarshaller.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();
            info.DuplexConnection = bs.ReadBoolean();
            info.NetworkConnection = bs.ReadBoolean();
            info.ConnectionId = TightUnmarshalLong(wireFormat, dataIn, bs);
            info.BrokerUploadUrl = TightUnmarshalString(dataIn, bs);
            info.NetworkProperties = TightUnmarshalString(dataIn, bs);
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:32,代码来源:BrokerInfoMarshaller.cs


示例4: configure

 /// <summery>
 ///  Adds the Marshallers for this version of the OpenWire protocol to the 
 ///  Collection of Marshallers stored in the OpenWireFormat class.
 /// </summery>
 public void configure(OpenWireFormat format)
 {
     format.clearMarshallers();
     format.addMarshaller(new ActiveMQBlobMessageMarshaller());
     format.addMarshaller(new ActiveMQBytesMessageMarshaller());
     format.addMarshaller(new ActiveMQMapMessageMarshaller());
     format.addMarshaller(new ActiveMQMessageMarshaller());
     format.addMarshaller(new ActiveMQObjectMessageMarshaller());
     format.addMarshaller(new ActiveMQQueueMarshaller());
     format.addMarshaller(new ActiveMQStreamMessageMarshaller());
     format.addMarshaller(new ActiveMQTempQueueMarshaller());
     format.addMarshaller(new ActiveMQTempTopicMarshaller());
     format.addMarshaller(new ActiveMQTextMessageMarshaller());
     format.addMarshaller(new ActiveMQTopicMarshaller());
     format.addMarshaller(new BrokerIdMarshaller());
     format.addMarshaller(new BrokerInfoMarshaller());
     format.addMarshaller(new ConnectionControlMarshaller());
     format.addMarshaller(new ConnectionErrorMarshaller());
     format.addMarshaller(new ConnectionIdMarshaller());
     format.addMarshaller(new ConnectionInfoMarshaller());
     format.addMarshaller(new ConsumerControlMarshaller());
     format.addMarshaller(new ConsumerIdMarshaller());
     format.addMarshaller(new ConsumerInfoMarshaller());
     format.addMarshaller(new ControlCommandMarshaller());
     format.addMarshaller(new DataArrayResponseMarshaller());
     format.addMarshaller(new DataResponseMarshaller());
     format.addMarshaller(new DestinationInfoMarshaller());
     format.addMarshaller(new DiscoveryEventMarshaller());
     format.addMarshaller(new ExceptionResponseMarshaller());
     format.addMarshaller(new FlushCommandMarshaller());
     format.addMarshaller(new IntegerResponseMarshaller());
     format.addMarshaller(new JournalQueueAckMarshaller());
     format.addMarshaller(new JournalTopicAckMarshaller());
     format.addMarshaller(new JournalTraceMarshaller());
     format.addMarshaller(new JournalTransactionMarshaller());
     format.addMarshaller(new KeepAliveInfoMarshaller());
     format.addMarshaller(new LastPartialCommandMarshaller());
     format.addMarshaller(new LocalTransactionIdMarshaller());
     format.addMarshaller(new MessageAckMarshaller());
     format.addMarshaller(new MessageDispatchMarshaller());
     format.addMarshaller(new MessageDispatchNotificationMarshaller());
     format.addMarshaller(new MessageIdMarshaller());
     format.addMarshaller(new MessagePullMarshaller());
     format.addMarshaller(new NetworkBridgeFilterMarshaller());
     format.addMarshaller(new PartialCommandMarshaller());
     format.addMarshaller(new ProducerAckMarshaller());
     format.addMarshaller(new ProducerIdMarshaller());
     format.addMarshaller(new ProducerInfoMarshaller());
     format.addMarshaller(new RemoveInfoMarshaller());
     format.addMarshaller(new RemoveSubscriptionInfoMarshaller());
     format.addMarshaller(new ReplayCommandMarshaller());
     format.addMarshaller(new ResponseMarshaller());
     format.addMarshaller(new SessionIdMarshaller());
     format.addMarshaller(new SessionInfoMarshaller());
     format.addMarshaller(new ShutdownInfoMarshaller());
     format.addMarshaller(new SubscriptionInfoMarshaller());
     format.addMarshaller(new TransactionInfoMarshaller());
     format.addMarshaller(new WireFormatInfoMarshaller());
     format.addMarshaller(new XATransactionIdMarshaller());
 }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:64,代码来源:MarshallerFactory.cs


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

            JournalTrace info = (JournalTrace)o;
            info.Message = TightUnmarshalString(dataIn, bs);
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:10,代码来源:JournalTraceMarshaller.cs


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

            BrokerId info = (BrokerId)o;
            info.Value = TightUnmarshalString(dataIn, bs);
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:10,代码来源:BrokerIdMarshaller.cs


示例7: LooseUnmarshal

        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            ActiveMQDestination info = (ActiveMQDestination)o;
            info.PhysicalName = LooseUnmarshalString(dataIn);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:ActiveMQDestinationMarshaller.cs


示例8: LooseUnmarshal

        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            SessionInfo info = (SessionInfo)o;
            info.SessionId = (SessionId) LooseUnmarshalCachedObject(wireFormat, dataIn);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:SessionInfoMarshaller.cs


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

            SessionInfo info = (SessionInfo)o;
            info.SessionId = (SessionId) TightUnmarshalCachedObject(wireFormat, dataIn, bs);
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:10,代码来源:SessionInfoMarshaller.cs


示例10: LooseUnmarshal

        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            ConnectionInfo info = (ConnectionInfo)o;
            info.ConnectionId = (ConnectionId) LooseUnmarshalCachedObject(wireFormat, dataIn);
            info.ClientId = LooseUnmarshalString(dataIn);
            info.Password = LooseUnmarshalString(dataIn);
            info.UserName = LooseUnmarshalString(dataIn);

            if (dataIn.ReadBoolean()) {
                short size = dataIn.ReadInt16();
                BrokerId[] value = new BrokerId[size];
                for( int i=0; i < size; i++ ) {
                    value[i] = (BrokerId) LooseUnmarshalNestedObject(wireFormat,dataIn);
                }
                info.BrokerPath = value;
            }
            else {
                info.BrokerPath = null;
            }
            info.BrokerMasterConnector = dataIn.ReadBoolean();
            info.Manageable = dataIn.ReadBoolean();
            info.ClientMaster = dataIn.ReadBoolean();
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:28,代码来源:ConnectionInfoMarshaller.cs


示例11: LooseUnmarshal

        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            DataResponse info = (DataResponse)o;
            info.Data = (DataStructure) LooseUnmarshalNestedObject(wireFormat, dataIn);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:DataResponseMarshaller.cs


示例12: LooseMarshal

        //
        // Write a object instance to data output stream
        //
        public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut)
        {
            DataResponse info = (DataResponse)o;

            base.LooseMarshal(wireFormat, o, dataOut);
            LooseMarshalNestedObject(wireFormat, (DataStructure)info.Data, dataOut);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:DataResponseMarshaller.cs


示例13: LooseUnmarshal

        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            BrokerId info = (BrokerId)o;
            info.Value = LooseUnmarshalString(dataIn);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:BrokerIdMarshaller.cs


示例14: LooseMarshal

        //
        // Write a object instance to data output stream
        //
        public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut)
        {
            BrokerId info = (BrokerId)o;

            base.LooseMarshal(wireFormat, o, dataOut);
            LooseMarshalString(info.Value, dataOut);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:BrokerIdMarshaller.cs


示例15: LooseMarshal

        //
        // Write a object instance to data output stream
        //
        public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut)
        {
            DataArrayResponse info = (DataArrayResponse)o;

            base.LooseMarshal(wireFormat, o, dataOut);
            LooseMarshalObjectArray(wireFormat, info.Data, dataOut);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:DataArrayResponseMarshaller.cs


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

            Response info = (Response)o;
            dataOut.Write(info.CorrelationId);
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:10,代码来源:ResponseMarshaller.cs


示例17: LooseMarshal

        //
        // Write a object instance to data output stream
        //
        public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut)
        {
            SessionInfo info = (SessionInfo)o;

            base.LooseMarshal(wireFormat, o, dataOut);
            LooseMarshalCachedObject(wireFormat, (DataStructure)info.SessionId, dataOut);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:SessionInfoMarshaller.cs


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

            SessionInfo info = (SessionInfo)o;
            TightMarshalCachedObject2(wireFormat, (DataStructure)info.SessionId, dataOut, bs);
        }
开发者ID:Redi0,项目名称:meijing-ui,代码行数:10,代码来源:SessionInfoMarshaller.cs


示例19: LooseMarshal

        //
        // Write a object instance to data output stream
        //
        public override void LooseMarshal(OpenWireFormat wireFormat, Object o, BinaryWriter dataOut)
        {
            ActiveMQDestination info = (ActiveMQDestination)o;

            base.LooseMarshal(wireFormat, o, dataOut);
            LooseMarshalString(info.PhysicalName, dataOut);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:ActiveMQDestinationMarshaller.cs


示例20: LooseUnmarshal

        //
        // Un-marshal an object instance from the data input stream
        //
        public override void LooseUnmarshal(OpenWireFormat wireFormat, Object o, BinaryReader dataIn)
        {
            base.LooseUnmarshal(wireFormat, o, dataIn);

            RemoveInfo info = (RemoveInfo)o;
            info.ObjectId = (DataStructure) LooseUnmarshalCachedObject(wireFormat, dataIn);
        }
开发者ID:ThorTech,项目名称:apache-nms,代码行数:10,代码来源:RemoveInfoMarshaller.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# OpenXmlElement类代码示例发布时间:2022-05-24
下一篇:
C# OpenTagCache类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap