public AzureSubscriptionsManager(string token)
        {
            Microsoft.Rest.BasicAuthenticationCredentials credentials =
                new Microsoft.Rest.BasicAuthenticationCredentials();
            HttpClientHandler a;

            this._subscriptionClient = new SubscriptionClient(credentials, new AzureAuthorizationHeaderHandler(token));
        }
예제 #2
0
        public ParkingController()
        {
            var uri    = new Uri(Configuration.WebApiUrl);
            var cred   = new Microsoft.Rest.BasicAuthenticationCredentials();
            var client = new Services.WebApi.ExcerciseOneWebApi(uri, cred);
            var svc    = new Services.WebApi.Database(client);

            this.api = svc;
        }