Esempio n. 1
0
 public override int GetId()
 {
     lock (this)
     {
         MRProtos.JobIdProtoOrBuilder p = viaProto ? proto : builder;
         return(p.GetId());
     }
 }
Esempio n. 2
0
 public override ApplicationId GetAppId()
 {
     lock (this)
     {
         MRProtos.JobIdProtoOrBuilder p = viaProto ? proto : builder;
         if (applicationId != null)
         {
             return(applicationId);
         }
         // Else via proto
         if (!p.HasAppId())
         {
             return(null);
         }
         applicationId = ConvertFromProtoFormat(p.GetAppId());
         return(applicationId);
     }
 }