public HuaweiCloudSmsClient(HuaweiCloudSmsConfig config, Action <Exception> exceptionHandler = null) { _config = config ?? throw new ArgumentNullException(nameof(config)); _huaweiCloudAccount = config.Account ?? throw new ArgumentNullException(nameof(config.Account)); _proxy = WebApiClientCreator.Create(_config); var globalHandle = ExceptionHandleResolver.ResolveHandler(); globalHandle += exceptionHandler; _exceptionHandler = globalHandle; }
public WsseObject(HuaweiCloudAccount account) { AppKey = account.AppKey; AppSecret = account.AppSecret; }