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


C# TProtocol.WriteStructEnd方法代码示例

本文整理汇总了C#中Thrift.Protocol.TProtocol.WriteStructEnd方法的典型用法代码示例。如果您正苦于以下问题:C# TProtocol.WriteStructEnd方法的具体用法?C# TProtocol.WriteStructEnd怎么用?C# TProtocol.WriteStructEnd使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Thrift.Protocol.TProtocol的用法示例。


在下文中一共展示了TProtocol.WriteStructEnd方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("TimedOutException");
       oprot.WriteStructBegin(struc);
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:nativex,项目名称:fluentcassandra,代码行数:7,代码来源:TimedOutException.cs

示例2: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("LSSupervisorId");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "supervisor_id";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Supervisor_id);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:13,代码来源:LSSupervisorId.cs

示例3: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCChatResultMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "result";
   field.Type = TType.Byte;
   field.ID = 10;
   oprot.WriteFieldBegin(field);
   oprot.WriteByte(Result);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:13,代码来源:SCChatResultMsg.cs

示例4: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSChatSettingMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "chatSetting";
   field.Type = TType.Struct;
   field.ID = 10;
   oprot.WriteFieldBegin(field);
   ChatSetting.Write(oprot);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:13,代码来源:CSChatSettingMsg.cs

示例5: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("InvalidRequestException");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "why";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Why);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:cosh,项目名称:C4,代码行数:13,代码来源:InvalidRequestException.cs

示例6: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("AlreadyAliveException");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "msg";
   field.Type = TType.String;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteString(Msg);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:bcardi,项目名称:storm-net-adapter,代码行数:13,代码来源:AlreadyAliveException.cs

示例7: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCSystemInfoMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "systemInfo";
   field.Type = TType.Struct;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   SystemInfo.Write(oprot);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:sgyli7,项目名称:ClientFrameWork,代码行数:13,代码来源:SCSystemInfoMsg.cs

示例8: Write

 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("IndexStatusResponse");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "Status";
   field.Type = TType.I32;
   field.ID = 1;
   oprot.WriteFieldBegin(field);
   oprot.WriteI32((int)Status);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:NobodyLiveForever,项目名称:FlexSearch,代码行数:13,代码来源:IndexStatusResponse.cs

示例9: Write

 public void Write(TProtocol oprot) {
   oprot.IncrementRecursionDepth();
   try
   {
     TStruct struc = new TStruct("ReqChannelInfo");
     oprot.WriteStructBegin(struc);
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
   }
   finally
   {
     oprot.DecrementRecursionDepth();
   }
 }
开发者ID:serenitii,项目名称:jeisimple,代码行数:14,代码来源:ReqChannelInfo.cs

示例10: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("get_slice_super_args");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (this.tablename != null) {
     field.Name = "tablename";
     field.Type = TType.String;
     field.ID = -1;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.tablename);
     oprot.WriteFieldEnd();
       }
       if (this.key != null) {
     field.Name = "key";
     field.Type = TType.String;
     field.ID = -2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.key);
     oprot.WriteFieldEnd();
       }
       if (this.columnFamily_superColumnName != null) {
     field.Name = "columnFamily_superColumnName";
     field.Type = TType.String;
     field.ID = -3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(this.columnFamily_superColumnName);
     oprot.WriteFieldEnd();
       }
       field.Name = "start";
       field.Type = TType.I32;
       field.ID = -4;
       oprot.WriteFieldBegin(field);
       oprot.WriteI32(this.start);
       oprot.WriteFieldEnd();
       field.Name = "count";
       field.Type = TType.I32;
       field.ID = -5;
       oprot.WriteFieldBegin(field);
       oprot.WriteI32(this.count);
       oprot.WriteFieldEnd();
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:jiansheng,项目名称:cassandra,代码行数:44,代码来源:Cassandra.cs

示例11: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("CounterColumn");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Name);
     oprot.WriteFieldEnd();
       }
       if (__isset.value) {
     field.Name = "value";
     field.Type = TType.I64;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Value);
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:HappiestTeam,项目名称:Spikes,代码行数:24,代码来源:CounterColumn.cs

示例12: Write


//.........这里部分代码省略.........
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Created);
     oprot.WriteFieldEnd();
   }
   if (__isset.updated) {
     field.Name = "updated";
     field.Type = TType.I64;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Updated);
     oprot.WriteFieldEnd();
   }
   if (__isset.deleted) {
     field.Name = "deleted";
     field.Type = TType.I64;
     field.ID = 8;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Deleted);
     oprot.WriteFieldEnd();
   }
   if (__isset.active) {
     field.Name = "active";
     field.Type = TType.Bool;
     field.ID = 9;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Active);
     oprot.WriteFieldEnd();
   }
   if (__isset.updateSequenceNum) {
     field.Name = "updateSequenceNum";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(UpdateSequenceNum);
     oprot.WriteFieldEnd();
   }
   if (NotebookGuid != null && __isset.notebookGuid) {
     field.Name = "notebookGuid";
     field.Type = TType.String;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(NotebookGuid);
     oprot.WriteFieldEnd();
   }
   if (TagGuids != null && __isset.tagGuids) {
     field.Name = "tagGuids";
     field.Type = TType.List;
     field.ID = 12;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, TagGuids.Count));
       foreach (string _iter26 in TagGuids)
       {
         oprot.WriteString(_iter26);
         oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (Resources != null && __isset.resources) {
     field.Name = "resources";
     field.Type = TType.List;
     field.ID = 13;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Resources.Count));
       foreach (Resource _iter27 in Resources)
       {
         _iter27.Write(oprot);
         oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   if (Attributes != null && __isset.attributes) {
     field.Name = "attributes";
     field.Type = TType.Struct;
     field.ID = 14;
     oprot.WriteFieldBegin(field);
     Attributes.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (TagNames != null && __isset.tagNames) {
     field.Name = "tagNames";
     field.Type = TType.List;
     field.ID = 15;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, TagNames.Count));
       foreach (string _iter28 in TagNames)
       {
         oprot.WriteString(_iter28);
         oprot.WriteListEnd();
       }
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:nicks707,项目名称:evernote-sdk-csharp,代码行数:101,代码来源:Note.cs

示例13: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("AuthenticationRequest");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (Credentials != null && __isset.credentials) {
     field.Name = "credentials";
     field.Type = TType.Map;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteMapBegin(new TMap(TType.String, TType.String, Credentials.Count));
       foreach (string _iter32 in Credentials.Keys)
       {
     oprot.WriteString(_iter32);
     oprot.WriteString(Credentials[_iter32]);
       }
       oprot.WriteMapEnd();
     }
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:brooklynDev,项目名称:fluentcassandra,代码行数:24,代码来源:AuthenticationRequest.cs

示例14: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("SuggestedCategoriesCategoryMap");
       oprot.WriteStructBegin(struc);
       TField field = new TField();
       if (__isset.CategoryID) {
     field.Name = "CategoryID";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(CategoryID);
     oprot.WriteFieldEnd();
       }
       if (CategoryName != null && __isset.CategoryName) {
     field.Name = "CategoryName";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(CategoryName);
     oprot.WriteFieldEnd();
       }
       if (CategoryParentID != null && __isset.CategoryParentID) {
     field.Name = "CategoryParentID";
     field.Type = TType.List;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I32, CategoryParentID.Count));
       foreach (int _iter38 in CategoryParentID)
       {
     oprot.WriteI32(_iter38);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       if (CategoryParentName != null && __isset.CategoryParentName) {
     field.Name = "CategoryParentName";
     field.Type = TType.List;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.String, CategoryParentName.Count));
       foreach (string _iter39 in CategoryParentName)
       {
     oprot.WriteString(_iter39);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
       }
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
开发者ID:tomochandv,项目名称:Test,代码行数:54,代码来源:SuggestedCategoriesCategoryMap.cs

示例15: Write


//.........这里部分代码省略.........
     field.ID = 16;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I64, PublicoAlvo.Count));
       foreach (long _iter20 in PublicoAlvo)
       {
         oprot.WriteI64(_iter20);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (Participantes != null && __isset.participantes) {
     field.Name = "participantes";
     field.Type = TType.List;
     field.ID = 18;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, Participantes.Count));
       foreach (ParticipanteRowItemThrift _iter21 in Participantes)
       {
         _iter21.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.tbCdsOrigem) {
     field.Name = "tbCdsOrigem";
     field.Type = TType.I32;
     field.ID = 19;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(TbCdsOrigem);
     oprot.WriteFieldEnd();
   }
   if (CnesLocalAtividade != null && __isset.cnesLocalAtividade) {
     field.Name = "cnesLocalAtividade";
     field.Type = TType.String;
     field.ID = 21;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(CnesLocalAtividade);
     oprot.WriteFieldEnd();
   }
   if (Procedimento != null && __isset.procedimento) {
     field.Name = "procedimento";
     field.Type = TType.String;
     field.ID = 22;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Procedimento);
     oprot.WriteFieldEnd();
   }
   if (__isset.turno) {
     field.Name = "turno";
     field.Type = TType.I64;
     field.ID = 23;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Turno);
     oprot.WriteFieldEnd();
   }
   if (HeaderTransport != null && __isset.headerTransport) {
     field.Name = "headerTransport";
     field.Type = TType.Struct;
     field.ID = 24;
     oprot.WriteFieldBegin(field);
     HeaderTransport.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (TemasParaSaude != null && __isset.temasParaSaude) {
     field.Name = "temasParaSaude";
     field.Type = TType.List;
     field.ID = 25;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I64, TemasParaSaude.Count));
       foreach (long _iter22 in TemasParaSaude)
       {
         oprot.WriteI64(_iter22);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (PraticasEmSaude != null && __isset.praticasEmSaude) {
     field.Name = "praticasEmSaude";
     field.Type = TType.List;
     field.ID = 26;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I64, PraticasEmSaude.Count));
       foreach (long _iter23 in PraticasEmSaude)
       {
         oprot.WriteI64(_iter23);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
开发者ID:esusab,项目名称:integracao,代码行数:101,代码来源:FichaAtividadeColetivaThrift.cs


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