Blame view

netcore/src/Infrastructure/NCC/RemoteRequest/Attributes/TimeoutAttribute.cs 633 Bytes
de2bd2f9   “wangming”   项目初始化
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
  using NCC.Dependency;
  using System;
  
  namespace NCC.RemoteRequest
  {
      /// <summary>
      /// 配置客户端请求超时时间
      /// </summary>
      [SuppressSniffer, AttributeUsage(AttributeTargets.Interface | AttributeTargets.Method)]
      public class TimeoutAttribute : Attribute
      {
          /// <summary>
          /// 构造函数
          /// </summary>
          /// <param name="seconds"></param>
          public TimeoutAttribute(long seconds)
          {
              Seconds = seconds;
          }
  
          /// <summary>
          /// 超时时间(秒)
          /// </summary>
          public long Seconds { get; set; }
      }
  }