Beispiel #1
0
        private VenueServiceClient GetVenueServiceClient(string name, string password)
        {
            var client = new VenueServiceClient();

            client.ClientCredentials.UserName.UserName = name;
            client.ClientCredentials.UserName.Password = password;

            return(client);
        }
Beispiel #2
0
        public ManagementViewModel()
        {
            _userApi       = new WebAPIClient(new Uri("https://localhost:44319/"), new BasicAuthenticationCredentials());
            _venueService  = new VenueServiceClient();
            _layoutService = new LayoutServiceClient();
            _areaService   = new AreaServiceClient();
            _seatService   = new SeatServiceClient();

            UsersInit();
            VenueLayoutTreeInit();
            AreaSeatListInit();
        }