-
Notifications
You must be signed in to change notification settings - Fork 875
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
Conversation
@ericsciple what is using that encryption code? |
@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); |
There was a problem hiding this comment.
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); |
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dateparsehandling none
No description provided.