1 write to Method
NuGet.Protocol (1)
Plugins\Messages\Message.cs (1)
95Method = method;
26 references to Method
NuGet.Protocol (26)
Plugins\AutomaticProgressReporter.cs (1)
178_request.Method,
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 (9)
107_logger.Write(new TaskLogMessage(_logger.Now, request.RequestId, request.Method, request.Type, TaskState.Executing)); 118var response = MessageUtilities.Create(request.RequestId, MessageType.Cancel, request.Method); 130_logger.Write(new TaskLogMessage(_logger.Now, request.RequestId, request.Method, request.Type, TaskState.Completed)); 186request.Method, 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)); 258_inboundRequestProcessingHandler.Handle(request.Method, task, _cancellationToken);
Plugins\MessageConverter.cs (4)
130if (!root.TryGetProperty(nameof(Message.Method), out var methodProp)) 132throw new JsonException(string.Format(CultureInfo.CurrentCulture, Strings.Error_RequiredJsonPropertyMissing, nameof(Message.Method))); 175writer.WriteString(nameof(Message.Method), value.Method.ToString());
Plugins\MessageDispatcher.cs (6)
391var message = MessageUtilities.Create(request.RequestId, type, request.Method, payload); 408var message = MessageUtilities.Create(request.RequestId, MessageType.Cancel, request.Method); 431message = new Message(request.RequestId, MessageType.Fault, request.Method, fault); 443var message = MessageUtilities.Create(request.RequestId, MessageType.Progress, request.Method, progress); 495_logger.Write(new CommunicationLogMessage(_logger.Now, message.RequestId, message.Method, message.Type, MessageState.Cancelled)); 620requestHandler = GetInboundRequestHandler(message.Method);
Plugins\OutboundRequestContext`1.cs (3)
273_logger.Write(new TaskLogMessage(_logger.Now, _request.RequestId, _request.Method, MessageType.Cancel, TaskState.Queued)); 283_logger.Write(new TaskLogMessage(_logger.Now, _request.RequestId, _request.Method, MessageType.Cancel, TaskState.Executing)); 295_logger.Write(new TaskLogMessage(_logger.Now, _request.RequestId, _request.Method, MessageType.Cancel, TaskState.Completed));