public NoteServiceClient(string baseApiUrl) { _httpClient = new HttpClient(); _httpClient.BaseAddress = new Uri($"{baseApiUrl}/"); ProfileClient = new UserProfileClient(_httpClient); NoteClient = new NoteClient(_httpClient); }
public RequestBusinessLogic(IUserProfileClient userProfileClient, ISkillRequestValidator skillRequestValidator, ISkillProductsClientAdapter skillProductsClientAdapter, ILogger <RequestBusinessLogic> logger, IRequestMapper requestMapper, ITokenUserData tokenUserData) { if (userProfileClient == null) { throw new ArgumentNullException("userProfileClient"); } if (skillRequestValidator == null) { throw new ArgumentNullException("skillRequestValidator"); } if (skillProductsClientAdapter == null) { throw new ArgumentNullException("skillProductsAdapter"); } if (logger == null) { throw new ArgumentNullException("logger"); } if (requestMapper == null) { throw new ArgumentNullException("requestMapper"); } if (tokenUserData == null) { throw new ArgumentNullException("tokenUserData"); } this.userProfileClient = userProfileClient; this.skillRequestValidator = skillRequestValidator; this.skillProductsClientAdapter = skillProductsClientAdapter; this.logger = logger; this.requestMapper = requestMapper; this.tokenUserData = tokenUserData; }
public EventoNotificationManager(IPushNotifier notifier, IUserProfileClient userProfileClient) { this.notifier = notifier; this.userProfileClient = userProfileClient; }