public WidgetBusService()
     : this(
         new DataRepository("Bus"),
         KerberosClientHelper.CreateBasicHttpKerberosClient <IWidgetDomService>(
             ConfigurationManager.AppSettings.Get(ConstValues.Config_DomServiceUrl),
             ConfigurationManager.AppSettings.Get(ConstValues.Config_DomServiceSpn))
         )
 {
 }
        public MainWindow()
        {
            InitializeComponent();

            //Set a starting "default" value
            CreateNewValue();

            //Setup App Service Client
            var appUrl = ConfigurationManager.AppSettings.Get(ConstValues.Config_AppServiceUrl);
            var appSpn = ConfigurationManager.AppSettings.Get(ConstValues.Config_AppServiceSpn);

            _widgetAppService = KerberosClientHelper.CreateBasicHttpKerberosClient <IWidgetAppService>(appUrl, appSpn);
            //Setup Bus Service Client
            var busUrl = ConfigurationManager.AppSettings.Get(ConstValues.Config_BusServiceUrl);
            var busSpn = ConfigurationManager.AppSettings.Get(ConstValues.Config_BusServiceSpn);

            _widgetBusService = KerberosClientHelper.CreateBasicHttpKerberosClient <IWidgetBusService>(busUrl, busSpn);
            //Setup Dom Service Client
            var domUrl = ConfigurationManager.AppSettings.Get(ConstValues.Config_DomServiceUrl);
            var domSpn = ConfigurationManager.AppSettings.Get(ConstValues.Config_DomServiceSpn);

            _widgetDomService = KerberosClientHelper.CreateBasicHttpKerberosClient <IWidgetDomService>(domUrl, domSpn);
        }