public AccountClient(
     string baseAddress,
     IHttpHandler httpHandler,
     Dictionary <string, string> constantHeaders,
     Dictionary <string, string> sessionHeaders,
     IAsyncRequestController asyncRequestController,
     EvaluationNotifications evaluationNotifications)
     : base(baseAddress, httpHandler, constantHeaders, sessionHeaders, asyncRequestController, evaluationNotifications)
 {
 }
Ejemplo n.º 2
0
 public AllianceClient(
     string baseAddress,
     IHttpHandler httpHandler,
     Dictionary <string, string> persistentHeaders,
     Dictionary <string, string> sessionHeaders,
     IAsyncRequestController asyncRequestController,
     EvaluationNotifications evaluationNotifications)
     : base(baseAddress, httpHandler, persistentHeaders, sessionHeaders, asyncRequestController, evaluationNotifications)
 {
 }
Ejemplo n.º 3
0
        protected ClientBase(
            string baseAddress,
            IHttpHandler httpHandler,
            Dictionary <string, string> constantHeaders,
            Dictionary <string, string> sessionHeaders,
            IAsyncRequestController asyncRequestController,
            EvaluationNotifications evaluationNotifications)
        {
            if (!Uri.IsWellFormedUriString(baseAddress, UriKind.Absolute))
            {
                throw new ClientException("Base address is not an absolute or valid URI");
            }

            _baseAddress            = baseAddress;
            _httpHandler            = httpHandler;
            _constantHeaders        = constantHeaders;
            _sessionHeaders         = sessionHeaders;
            AsyncRequestController  = asyncRequestController;
            EvaluationNotifications = evaluationNotifications;
        }
 /// <summary>
 /// Gets pending skill progress notifications.
 /// </summary>
 /// <param name="notification"></param>
 /// <returns>Returns a boolean value indicating whether there was a notification to retrieve or not.</returns>
 public bool TryGetPendingNotification(out EvaluationNotification notification)
 {
     return(EvaluationNotifications.TryDequeue(EvaluationType.Skill, out notification));
 }