1 write to Type
NuGet.Protocol (1)
Plugins\Messages\Message.cs (1)
94Type = type;
18 references to Type
NuGet.Protocol (18)
Plugins\Connection.cs (3)
247_logger.Write(new CommunicationLogMessage(_logger.Now, message.RequestId, message.Method, message.Type, MessageState.Sending)); 254_logger.Write(new CommunicationLogMessage(_logger.Now, message.RequestId, message.Method, message.Type, MessageState.Sent)); 299_logger.Write(new CommunicationLogMessage(_logger.Now, e.Message.RequestId, e.Message.Method, e.Message.Type, MessageState.Received));
Plugins\InboundRequestContext.cs (6)
107_logger.Write(new TaskLogMessage(_logger.Now, request.RequestId, request.Method, request.Type, TaskState.Executing)); 130_logger.Write(new TaskLogMessage(_logger.Now, request.RequestId, request.Method, request.Type, TaskState.Completed)); 191_logger.Write(new TaskLogMessage(_logger.Now, response.RequestId, response.Method, response.Type, TaskState.Queued)); 201_logger.Write(new TaskLogMessage(_logger.Now, response.RequestId, response.Method, response.Type, TaskState.Executing)); 213_logger.Write(new TaskLogMessage(_logger.Now, response.RequestId, response.Method, response.Type, TaskState.Completed)); 254_logger.Write(new TaskLogMessage(_logger.Now, request.RequestId, request.Method, request.Type, TaskState.Queued));
Plugins\MessageConverter.cs (4)
119if (!root.TryGetProperty(nameof(Message.Type), out var typeProp)) 121throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Type))); 174writer.WriteString(nameof(Message.Type), value.Type.ToString());
Plugins\MessageDispatcher.cs (5)
495_logger.Write(new CommunicationLogMessage(_logger.Now, message.RequestId, message.Method, message.Type, MessageState.Cancelled)); 536switch (e.Message.Type) 559e.Message.Type)); 565switch (e.Message.Type) 584e.Message.Type));