예제 #1
0
        internal HttpResponse(CreateOptions options)
        {
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            StatusCode  = options.StatusCode;
            EndDateTime = options.EndDateTime;
            Properties  = options.Properties ?? new ResponseProperties(new ResponseProperties.CreateOptions());
        }
예제 #2
0
 internal void SetProperties(ResponseProperties properties)
 {
     Properties = properties ?? throw new ArgumentNullException(nameof(properties));
 }