public ServiceInstanceStatusUpdateRequest(string serviceId, SemanticVersion serviceVersion, IPAddress serviceInstanceAddress, ServiceStatusInputDto input, int?maxHistorySize)
            : base(ExecutionRequestType.Mutation)
        {
            if (string.IsNullOrWhiteSpace(serviceId))
            {
                throw new ArgumentException("Value cannot be null or whitespace.", nameof(serviceId));
            }

            ServiceId              = serviceId;
            ServiceVersion         = serviceVersion ?? throw new ArgumentNullException(nameof(serviceVersion));
            ServiceInstanceAddress = serviceInstanceAddress ?? throw new ArgumentNullException(nameof(serviceInstanceAddress));
            Input          = input ?? throw new ArgumentNullException(nameof(input));
            MaxHistorySize = maxHistorySize;
        }
Exemplo n.º 2
0
 public async Task <ActionResult> Put(string serviceId, SemanticVersion serviceVersion, IPAddress serviceInstanceAddress, [FromBody] ServiceStatusInputDto statusDescription)
 {
     return(Ok());
 }