Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

preserve date strings in github event payload #77

Merged
merged 1 commit into from
Aug 15, 2019

Conversation

ericsciple
Copy link
Collaborator

No description provided.

@TingluoHuang
Copy link
Member

@ericsciple what is using that encryption code?

@ericsciple
Copy link
Collaborator Author

@TingluoHuang i dont remember the error offhand. i think the listener lost the connection after a while and couldnt reconnect

}

jobDispatcher.Run(pipelineJobMessage, runOnce);
var jobMessage = StringUtil.ConvertFromJson<Pipelines.AgentJobRequestMessage>(message.Body);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

switched to stringutil here

@@ -59,7 +59,7 @@ public async Task<int> RunAsync(string pipeIn, string pipeOut)
Trace.Info("Message received.");
ArgUtil.Equal(MessageType.NewJobRequest, channelMessage.MessageType, nameof(channelMessage.MessageType));
ArgUtil.NotNullOrEmpty(channelMessage.Body, nameof(channelMessage.Body));
var jobMessage = JsonUtility.FromString<Pipelines.AgentJobRequestMessage>(channelMessage.Body);
var jobMessage = StringUtil.ConvertFromJson<Pipelines.AgentJobRequestMessage>(channelMessage.Body);
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and switched to stringutil here

private static Lazy<JsonSerializerSettings> s_serializerSettings = new Lazy<JsonSerializerSettings>(() =>
{
var settings = new VssJsonMediaTypeFormatter().SerializerSettings;
settings.DateParseHandling = DateParseHandling.None;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dateparsehandling none

@TingluoHuang TingluoHuang merged commit 9b8c3a1 into master Aug 15, 2019
@TingluoHuang TingluoHuang deleted the users/ersciple/m157date branch August 15, 2019 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants