コード例 #1
0
        private void SendBuildRequestToTheServer(string solutionFilePath, string projectNameInSolution,
                                                 PlatformName platform, bool isRebuildOfCodeForced)
        {
            var projectData = new CodePacker(solutionFilePath, projectNameInSolution);
            var request     = new AppBuildRequest(Path.GetFileName(solutionFilePath), projectNameInSolution,
                                                  platform, projectData.GetPackedData());

            request.IsRebuildOfCodeForced = isRebuildOfCodeForced;
            request.ContentProjectName    = GetContentProject(projectNameInSolution);
            Service.Send(request, false);
        }
コード例 #2
0
        public void AppBuildRequestMessageMustBeRestorable()
        {
            AppBuildRequest requestMessage = CreateValidBuildRequestWithDummyByte();

            MessageTestExtensions.AssertObjectWhenSavedAndRestoredByToString(requestMessage);
        }
コード例 #3
0
 private void OnHandleBuildRequest(AppBuildRequest userBuildRequest)
 {
     NumberOfBuildRequests++;
     resultBuilder.BuildApp(userBuildRequest);
 }
コード例 #4
0
 public void BuildApp(AppBuildRequest userBuildRequest)
 {
     buildRequest = userBuildRequest;
     worker       = new Thread(Run);
     worker.Start();
 }