public AuthorizedExpenseServiceClient(string serviceUrl, IServiceAuthorizer serviceAuthorizer) : base(new EndpointConfiguration(), serviceUrl)
 {
     this._serviceAuthorizer = serviceAuthorizer;
 }
Exemplo n.º 2
0
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="serviceAuthorizer">服务验证器</param>
 public ServiceAuthorizeProcessor(IServiceAuthorizer serviceAuthorizer)
 {
     logger = LoggerManager.ServerLoggerFactory.CreateLogger <ServiceAuthorizeProcessor>();
     this.serviceAuthorizer = serviceAuthorizer ?? throw new InvalidOperationException("serviceAuthorize is null.");
 }
 public AuthorizedExpenseServiceClient(string serviceUrl, IServiceAuthorizer serviceAuthorizer) : base(new EndpointConfiguration(), serviceUrl)
 {
     this._serviceAuthorizer = serviceAuthorizer;
 }