Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
IBuildMonitorRemote.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 using System;
4 using System.Collections.Generic;
5 using System.ServiceModel;
6 
7 namespace SiliconStudio.BuildEngine
8 {
10  {
11  public enum NotificationType
12  {
13  JobStarted,
14  JobEnded,
15  };
16 
17  public int ThreadId;
18  public long MicrothreadId;
19  public long MicrothreadJobInfoId;
20  public long Time;
22 
24 
25  internal MicrothreadNotification(int threadId, long microthreadId, long microthreadJobId, long time, NotificationType type)
26  {
27  ThreadId = threadId;
28  MicrothreadId = microthreadId;
29  MicrothreadJobInfoId = microthreadJobId;
30  Time = time;
31  Type = type;
32  }
33  }
34 
35  [ServiceContract]
36  public interface IBuildMonitorRemote
37  {
38  [OperationContract]
39  int Ping();
40 
41  [OperationContract(IsOneWay = true)]
42  void StartBuild(Guid buildId, DateTime time);
43 
44  [OperationContract(IsOneWay = true)]
45  [UseParadoxDataContractSerializer]
46  void SendBuildStepInfo(Guid buildId, long executionId, string description, DateTime startTime);
47 
48  [OperationContract(IsOneWay = true)]
49  [UseParadoxDataContractSerializer]
50  void SendCommandLog(Guid buildId, DateTime startTime, long microthreadId, List<SerializableTimestampLogMessage> messages);
51 
52  [OperationContract(IsOneWay = true)]
53  void SendMicrothreadEvents(Guid buildId, DateTime startTime, DateTime now, IEnumerable<MicrothreadNotification> microthreadJobInfo);
54 
55  [OperationContract(IsOneWay = true)]
56  void SendBuildStepResult(Guid buildId, DateTime startTime, long microthreadId, ResultStatus status);
57 
58  [OperationContract(IsOneWay = true)]
59  void EndBuild(Guid buildId, DateTime time);
60  }
61 }
ResultStatus
Status of a command.
Definition: ResultStatus.cs:8