當前位置: 首頁>>代碼示例>>C#>>正文


C# TProtocol.WriteFieldStop方法代碼示例

本文整理匯總了C#中Thrift.Protocol.TProtocol.WriteFieldStop方法的典型用法代碼示例。如果您正苦於以下問題:C# TProtocol.WriteFieldStop方法的具體用法?C# TProtocol.WriteFieldStop怎麽用?C# TProtocol.WriteFieldStop使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Thrift.Protocol.TProtocol的用法示例。


在下文中一共展示了TProtocol.WriteFieldStop方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。

示例1: Write

 public void Write(TProtocol oprot)
 {
     TStruct struc = new TStruct("SchemaDisagreementException");
       oprot.WriteStructBegin(struc);
       oprot.WriteFieldStop();
       oprot.WriteStructEnd();
 }
開發者ID:HappiestTeam,項目名稱:Spikes,代碼行數:7,代碼來源:SchemaDisagreementException.cs

示例2: 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

示例3: 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

示例4: 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

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

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

示例7: 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

示例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("QueueRequest");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (Data != null && __isset.data) {
     field.Name = "data";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Data);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
開發者ID:shshen,項目名稱:bigqueue,代碼行數:15,代碼來源:QueueRequest.cs

示例11: Write

        public void Write(TProtocol oprot)
        {
            TStruct struc = new TStruct("get_superColumn_result");
              oprot.WriteStructBegin(struc);
              TField field = new TField();

              if (this.__isset.success) {
            if (this.success != null) {
              field.Name = "success";
              field.Type = TType.Struct;
              field.ID = 0;
              oprot.WriteFieldBegin(field);
              this.success.Write(oprot);
              oprot.WriteFieldEnd();
            }
              }
              oprot.WriteFieldStop();
              oprot.WriteStructEnd();
        }
開發者ID:jiansheng,項目名稱:cassandra,代碼行數:19,代碼來源:Cassandra.cs

示例12: 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

示例13: 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

示例14: 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

示例15: 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


注:本文中的Thrift.Protocol.TProtocol.WriteFieldStop方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。