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