public SetCodeSignatureResponse Post(SetCodeSignatureRequest request) { _log.StartLog(request); //Errors.Add(" cert is " + cert.SerialNumber); try { _azureClient.GetBlob(request.Container, _jobCreator.GetStatusPath(request.Path)).SaveTo(StatusCode.WaitingToRun.ToString()); _jobScheduler.Add(_jobCreator.CreateJob(request.Container, request.Path, request.StrongName)); return(new SetCodeSignatureResponse()); } catch (Exception e) { _log.Fatal("error", e); Errors.Add(e.Message + " " + e.StackTrace); return(new SetCodeSignatureResponse { Errors = Errors }); } }
private void PrefixedAction(string container, string path) { var statusBlob = _azureClient.GetBlob(container, GetStatusPath(path)); statusBlob.SaveTo(StatusCode.Running.ToString()); }