public BlackberryHttpClient (BlackberryConfiguration configuration) : base()
        {
            Configuration = configuration;

            var authInfo = Configuration.ApplicationId + ":" + Configuration.Password;
            authInfo = Convert.ToBase64String (Encoding.Default.GetBytes(authInfo));

            this.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue ("Basic", authInfo);
            this.DefaultRequestHeaders.ConnectionClose = true;

            this.DefaultRequestHeaders.Remove("connection");
        }
        public BlackberryHttpClient(BlackberryConfiguration configuration) : base()
        {
            Configuration = configuration;

            var authInfo = Configuration.ApplicationId + ":" + Configuration.Password;

            authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo));

            this.DefaultRequestHeaders.Authorization   = new AuthenticationHeaderValue("Basic", authInfo);
            this.DefaultRequestHeaders.ConnectionClose = true;

            this.DefaultRequestHeaders.Remove("connection");
        }
Exemple #3
0
 public BlackberryServiceBroker(BlackberryConfiguration configuration) : base(new BlackberryServiceConnectionFactory(configuration))
 {
 }
Exemple #4
0
 public BlackberryServiceConnection(BlackberryConfiguration configuration)
 {
     Configuration = configuration;
     http          = new BlackberryHttpClient(Configuration);
 }
Exemple #5
0
 public BlackberryServiceConnectionFactory(BlackberryConfiguration configuration)
 {
     Configuration = configuration;
 }