static AuthMgr() { AuthConfigurationSection section = (AuthConfigurationSection)ConfigurationManager.GetSection("auth"); if (string.IsNullOrEmpty(section.Default)) { throw new ConfigurationErrorsException("Please config default auth name."); } if (section.Auths == null || section.Auths.Count == 0) { throw new ConfigurationErrorsException("Please config at least one auth type."); } bool find = false; foreach (AuthItem auth in section.Auths) { if (auth.Name.Trim().ToLower() == section.Default.ToLower()) { Type authType = Type.GetType(auth.Type); _Auth = Activator.CreateInstance(authType) as IAuth; find = true; } } if (!find) { throw new ConfigurationErrorsException("Can't find default auth, Please check default auth name."); } }
public AdminController() { _auth = new FormsAuthWrapper (); _adminBLL = new AdminLogikk(); _produktBLL = new ProdukterLogikk(); _kundeBLL = new KundeLogikk(); }
public CustomerFacade(ICustomerRepository customerRepository, IAddressRepository addressRepository, IAuth auth, IPasswordHandler passwordHandler) { _customerRepository = customerRepository; _addressRepository = addressRepository; _auth = auth; _passwordHandler = passwordHandler; }
public AccountController(IUnitOfWork uow, IAuth a) { unitOfWork = uow; userService = new UserService(unitOfWork); metroRegionService = new MetroRegionService(unitOfWork); webSecurity = new WebSecurity(uow, a); }
public AuthenticationController(ICryptographer cryptographer, IPersistenceSession session, IAuth auth, IMessagingService messaging) { crypto = cryptographer; this.session = session; this.auth = auth; this.messaging = messaging; }
public AdminController(IAuth auth,IAdminLogikk stub, IProdukterLogikk stub1, IKundeLogikk stub2) { _auth = auth; _adminBLL = stub; _produktBLL = stub1; _kundeBLL = stub2; }
public UserController(IAuth auth, IUserService userService, ILogService logService, IMapperService mapper) : base(userService, logService) { _auth = auth; _mapper = mapper; }
public MainPresenter(IAuth authLogic, IAuthWindow authWindow,IMessageService service , IRegWindow regWindow,IMainWindow mainWindow) { ///передача переменных в класс _authLogic = authLogic; _authWindow = authWindow; _service = service; _regWindow = regWindow; _mainWindow = mainWindow; _authWindow.logInButtonClick += new EventHandler(_authWindow_logInButtonClick); //Кнопка для проверки существующей пары логин\пароль _authWindow.singUpButtonClick += new EventHandler(_authWindow_singUpButtonClick); //кнопка для открытия окна регистриции _regWindow.OkButtonClick += new EventHandler(_regWindow_OkButtonClick);// кнопка завершения регистрации _regWindow.BackButtonClick += new EventHandler(_regWindow_BackButtonClick);//кнопка отмены регистрации _mainWindow.ToggleLogInClick += _mainWindow_ToggleLogInClick;//кнопка открытия окна авторизации (трей) }
public ModulesController(IAuth authUtil, ModuleManagerApp app) { _app = app; _authUtil = authUtil; }
public Login() { auth = DependencyService.Get <IAuth>(); }
/// <summary> /// /// </summary> /// <param name="auth"></param> public AuthRequest(IAuth auth) { appkey = auth.AppKey; timestamp = DateTime.Now.ToMillisecondTimeStamp(); sign = $"{auth.AppKey}{timestamp}{auth.MasterSecret}".SHA256(); }
public SysLogsController(SysLogApp app, IAuth auth) : base(auth) { _app = app; }
public MaterialTypeController(IAuth authUtil, MaterialTypeApp app) : base(authUtil) { _app = app.SetLoginInfo(_loginInfo); }
protected BaseService(IUnitOfWork unitOfWork, IAuth auth, ICacheService cacheService) { UnitOfWork = unitOfWork; Auth = auth; CacheService = cacheService; }
public AccountController(IOptions <AppSettings> options, IAuth Auth, IClientManager ClientManager) { this.Auth = Auth; this.options = options; this.ClientManager = ClientManager; }
public MoveRequest(HttpCommonSettings settings, IAuth auth, string sourceFullPath, string destinationPath) : base(settings, auth) { _sourceFullPath = sourceFullPath; _destinationPath = destinationPath; }
public SysMessageApp(IUnitWork unitWork, IRepository <SysMessage> repository, RevelanceManagerApp app, IAuth auth) : base(unitWork, repository, auth) { _revelanceApp = app; }
public WebSecurity(IUnitOfWork uow, IAuth a) { userService = new UserService(uow); auth = a; }
/// <summary> /// Initializes a new instance of the <see cref="UsersController"/> class. /// Used for regular constructions. Obtains handle to Database. /// </summary> public UsersController() { this.db = new LabinatorContext(); this.auth = new FormsAuthWrapper(); }
public override void RuntimeInitialize(System.Reflection.MethodBase method) { Auth = new AuthService(); }
private void DisposeOldAuth() { if (_auth != null) { _auth.LoginStatusChanged -= _videoAuth_LoginStatusChanged; _auth = null; } }
public AccountService(IUnitOfWork unitOfWork, IAuth auth, ICacheService cacheService, UserManager<User> userManager, IEmailer emailer) : base(unitOfWork, auth, cacheService) { UserManager = userManager; Emailer = emailer; }
public ApplicationsController(IAuth authUtil, AppManager app) : base(authUtil) { _app = app; }
public HomeController(IAuth authUtil) : base(authUtil) { }
public AuthController(IAuth auth, IMapper mapper) { this._auth = auth; this._mapper = mapper; }
/// <summary> /// </summary> /// <param name="auth"></param> public ApiHost(IAuth auth) : this() { Auth = auth; }
public RegisterWithMailPage() { InitializeComponent(); auth = DependencyService.Get <IAuth>(); }
public LoginController(IAuth authentication, IUserService userService) : base(userService) { _authentication = authentication; _userService = userService; }
public OrgManagerApp(IUnitWork unitWork, IRepository <Org> repository, IAuth auth, RevelanceManagerApp revelanceApp) : base(unitWork, repository, auth) { _revelanceApp = revelanceApp; }
public ResourceApp(IUnitWork <OpenAuthDBContext> unitWork, IRepository <Resource, OpenAuthDBContext> repository , RevelanceManagerApp app, IAuth auth) : base(unitWork, repository, auth) { _revelanceApp = app; }
public DataPrivilegeRuleApp(IUnitWork <OpenAuthDBContext> unitWork, IRepository <DataPrivilegeRule, OpenAuthDBContext> repository, RevelanceManagerApp app, IAuth auth) : base(unitWork, repository, auth) { _revelanceApp = app; }
public SelectOptionsController(SelectOptionManagerApp app, IAuth auth) { _app = app; _auth = auth; }
public AccountInfoRequest(HttpCommonSettings settings, IAuth auth) : base(settings, auth) { }
public MyGymController(Context context, IAuth auth) { _context = context; _auth = auth; }
public BaseIntAutoGenApp(IUnitWork <TDbContext> unitWork, IRepository <T, TDbContext> repository, IAuth auth) : base(unitWork, repository, auth) { }
public Login(IAuth mock) { auth = mock; auth = DependencyService.Get <IAuth>(); }
public SSOAuthAttribute(IAuth auth) { _auth = auth; }
public AppManager(IUnitWork <OpenAuthDBContext> unitWork, IRepository <Application, OpenAuthDBContext> repository, IAuth auth) : base(unitWork, repository, auth) { }
public BaseApp(IUnitWork unitWork, IRepository <T> repository, IAuth auth) { UnitWork = unitWork; Repository = repository; _auth = auth; }
public PublishRequest(HttpCommonSettings settings, IAuth auth, string fullPath) : base(settings, auth) { _fullPath = fullPath; }
public AccountController(IAuth auth) { _auth = auth; }
public OpenAuthFilter(IAuth authUtil, SysLogApp logApp) { _authUtil = authUtil; _logApp = logApp; }
internal Api(IConnection connection, IAuth auth) { this.connection = connection; this.auth = auth; }
public CategoriesController(IAuth authUtil, CategoryApp app) : base(authUtil) { _app = app; }
public AuthenticatonPage(IAuth auth, AuthProvider ap) { // bind message to controls on page Label RequestLabel = new Label { XAlign = TextAlignment.Center, BindingContext = this }; RequestLabel.SetBinding(Label.TextProperty, nameof(RequestText)); Label ResponseLabel = new Label { XAlign = TextAlignment.Center, BindingContext = this }; ResponseLabel.SetBinding(Label.TextProperty, nameof(ResponseText)); Label ErrorLabel = new Label { XAlign = TextAlignment.Center, BindingContext = this }; ErrorLabel.SetBinding(Label.TextProperty, nameof(ErrorText)); Content = new StackLayout { Children = { new StackLayout // TODO: the display of request/response/error messages is really lame. Need help with better UI. { Children = { new Label { Text = "Request Info", HorizontalOptions = LayoutOptions.CenterAndExpand, BackgroundColor = Color.Blue }, new ScrollView { HeightRequest = 150, Content = RequestLabel } } }, new StackLayout { Children = { new Label { Text = "Response Info", HorizontalOptions = LayoutOptions.CenterAndExpand, BackgroundColor = Color.Blue }, new ScrollView { HeightRequest = 150, Content = ResponseLabel } } }, new StackLayout { Children = { new Label { Text = "Error Info", HorizontalOptions = LayoutOptions.CenterAndExpand, BackgroundColor = Color.Blue }, new ScrollView { HeightRequest = 150, Content = ErrorLabel } }, } } }; if (!string.IsNullOrEmpty(ap.consumerKey)) { Authenticate(auth.auth1, ap, AccountStore.Create().FindAccountsForService(ap.name)); } else if (!string.IsNullOrEmpty(ap.clientId)) { Authenticate(auth.auth2, ap, AccountStore.Create().FindAccountsForService(ap.name)); } else { ErrorText = "Authenticator: Empty consumerKey (OAuth1) and clientId (OAuth2)"; } }
/** * This function sets the data that is needed for the Achievements Screen */ public async void SetAchievementsData() { FirebaseClient firebaseClient = new FirebaseClient("https://application-green-quake-default-rtdb.firebaseio.com/"); auth = DependencyService.Get <IAuth>(); try { fixCount = (await firebaseClient .Child("AdvancedPoints") .Child(auth.GetUid()) .OnceSingleAsync <AdvancedPoints>()).fixCount; } catch (Exception e) { Console.Write(e); } try { createGroupCount = (await firebaseClient .Child("CommunityPoints") .Child(auth.GetUid()) .OnceSingleAsync <CommunityPoints>()).createGroupCount; } catch (Exception e) { Console.Write(e); } try { communityCount = (await firebaseClient .Child("CommunityPoints") .Child(auth.GetUid()) .OnceSingleAsync <CommunityPoints>()).communityCount; } catch (Exception e) { Console.Write(e); } try { donateCount = (await firebaseClient .Child("CommunityPoints") .Child(auth.GetUid()) .OnceSingleAsync <CommunityPoints>()).donateCount; } catch (Exception e) { Console.Write(e); } try { groupCount = (await firebaseClient .Child("CommunityPoints") .Child(auth.GetUid()) .OnceSingleAsync <CommunityPoints>()).groupCount; } catch (Exception e) { Console.Write(e); } try { shareCount = (await firebaseClient .Child("CommunityPoints") .Child(auth.GetUid()) .OnceSingleAsync <CommunityPoints>()).shareCount; } catch (Exception e) { Console.Write(e); } try { awarenessCount = (await firebaseClient .Child("CommunityPoints") .Child(auth.GetUid()) .OnceSingleAsync <CommunityPoints>()).awarenessCount; } catch (Exception e) { Console.Write(e); } try { hangDryCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).hangDryCount; } catch (Exception e) { Console.Write(e); } try { fullDryerCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).fullDryerCount; } catch (Exception e) { Console.Write(e); } try { insulateWaterCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).insulateWaterCount; } catch (Exception e) { Console.Write(e); } try { efficientThermostatCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).efficientThermostatCount; } catch (Exception e) { Console.Write(e); } try { isolateHomeCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).isolateHomeCount; } catch (Exception e) { Console.Write(e); } try { ledLightBulbCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).ledLightBulbCount; } catch (Exception e) { Console.Write(e); } try { microwaveCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).microwaveCount; } catch (Exception e) { Console.Write(e); } try { offSocketCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).offSocketCount; } catch (Exception e) { Console.Write(e); } try { reBatteriesCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).reBatteriesCount; } catch (Exception e) { Console.Write(e); } try { reBatCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).reBatCount; } catch (Exception e) { Console.Write(e); } try { fridgeCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).fridgeCount; } catch (Exception e) { Console.Write(e); } try { draftSealCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).draftSealCount; } catch (Exception e) { Console.Write(e); } try { ductSealCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).ductSealCount; } catch (Exception e) { Console.Write(e); } try { solarPanelCount = (await firebaseClient .Child("EnergyPoints") .Child(auth.GetUid()) .OnceSingleAsync <EnergyPoints>()).solarPanelCount; } catch (Exception e) { Console.Write(e); } try { eatAllCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).eatAllCount; } catch (Exception e) { Console.Write(e); } try { foodDeliverCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).foodDeliverCount; } catch (Exception e) { Console.Write(e); } try { noMeatCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).noMeatCount; } catch (Exception e) { Console.Write(e); } try { ownCoffeeCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).ownCoffeeCount; } catch (Exception e) { Console.Write(e); } try { reCoffeeMugCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).reCoffeeMugCount; } catch (Exception e) { Console.Write(e); } try { saveLeftOversCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).saveLeftOversCount; } catch (Exception e) { Console.Write(e); } try { steelStrawCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).steelStrawCount; } catch (Exception e) { Console.Write(e); } try { waterOverFizzyCount = (await firebaseClient .Child("FoodAndDrinkPoints") .Child(auth.GetUid()) .OnceSingleAsync <FoodAndDrinkPoints>()).waterOverFizzyCount; } catch (Exception e) { Console.Write(e); } try { brushingCount = (await firebaseClient .Child("HabitsPoints") .Child(auth.GetUid()) .OnceSingleAsync <HabitsPoints>()).brushingCount; } catch (Exception e) { Console.Write(e); } try { fullWasherCount = (await firebaseClient .Child("HabitsPoints") .Child(auth.GetUid()) .OnceSingleAsync <HabitsPoints>()).fullWasherCount; } catch (Exception e) { Console.Write(e); } try { showerCount = (await firebaseClient .Child("HabitsPoints") .Child(auth.GetUid()) .OnceSingleAsync <HabitsPoints>()).showerCount; } catch (Exception e) { Console.Write(e); } try { timedShowerCount = (await firebaseClient .Child("HabitsPoints") .Child(auth.GetUid()) .OnceSingleAsync <HabitsPoints>()).timedShowerCount; } catch (Exception e) { Console.Write(e); } try { offLigtsCount = (await firebaseClient .Child("HabitsPoints") .Child(auth.GetUid()) .OnceSingleAsync <HabitsPoints>()).offLigtsCount; } catch (Exception e) { Console.Write(e); } try { matchesCount = (await firebaseClient .Child("HabitsPoints") .Child(auth.GetUid()) .OnceSingleAsync <HabitsPoints>()).matchesCount; } catch (Exception e) { Console.Write(e); } try { airOutCount = (await firebaseClient .Child("HomePoints") .Child(auth.GetUid()) .OnceSingleAsync <HomePoints>()).airOutCount; } catch (Exception e) { Console.Write(e); } try { nonHarmCount = (await firebaseClient .Child("HomePoints") .Child(auth.GetUid()) .OnceSingleAsync <HomePoints>()).nonHarmCount; } catch (Exception e) { Console.Write(e); } try { outsideCount = (await firebaseClient .Child("HomePoints") .Child(auth.GetUid()) .OnceSingleAsync <HomePoints>()).outsideCount; } catch (Exception e) { Console.Write(e); } try { plantIntoHomeCount = (await firebaseClient .Child("HomePoints") .Child(auth.GetUid()) .OnceSingleAsync <HomePoints>()).plantIntoHomeCount; } catch (Exception e) { Console.Write(e); } try { toiletFlushCount = (await firebaseClient .Child("HomePoints") .Child(auth.GetUid()) .OnceSingleAsync <HomePoints>()).toiletFlushCount; } catch (Exception e) { Console.Write(e); } try { campingCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).campingCount; } catch (Exception e) { Console.Write(e); } try { picnicCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).picnicCount; } catch (Exception e) { Console.Write(e); } try { plantBushCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).plantBushCount; } catch (Exception e) { Console.Write(e); } try { plantFlowerCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).plantFlowerCount; } catch (Exception e) { Console.Write(e); } try { plantTreeCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).plantTreeCount; } catch (Exception e) { Console.Write(e); } try { scoopCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).scoopCount; } catch (Exception e) { Console.Write(e); } try { fruitGardenCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).fruitGardenCount; } catch (Exception e) { Console.Write(e); } try { herbGardenCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).herbGardenCount; } catch (Exception e) { Console.Write(e); } try { vegetableGardenCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).vegetableGardenCount; } catch (Exception e) { Console.Write(e); } try { birdFeederCount = (await firebaseClient .Child("OutdoorsPoints") .Child(auth.GetUid()) .OnceSingleAsync <OutdoorsPoints>()).birdFeederCount; } catch (Exception e) { Console.Write(e); } try { clothNapkinCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).clothNapkinCount; } catch (Exception e) { Console.Write(e); } try { clothTowelCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).clothTowelCount; } catch (Exception e) { Console.Write(e); } try { applianceCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).applianceCount; } catch (Exception e) { Console.Write(e); } try { productCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).productCount; } catch (Exception e) { Console.Write(e); } try { toothbrushCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).toothbrushCount; } catch (Exception e) { Console.Write(e); } try { clothesCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).clothesCount; } catch (Exception e) { Console.Write(e); } try { localCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).localCount; } catch (Exception e) { Console.Write(e); } try { looseLeafCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).looseLeafCount; } catch (Exception e) { Console.Write(e); } try { organicFoodCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).organicFoodCount; } catch (Exception e) { Console.Write(e); } try { reusableCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).reusableCount; } catch (Exception e) { Console.Write(e); } try { reBagCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).reBagCount; } catch (Exception e) { Console.Write(e); } try { foodCount = (await firebaseClient .Child("ShoppingPoints") .Child(auth.GetUid()) .OnceSingleAsync <ShoppingPoints>()).foodCount; } catch (Exception e) { Console.Write(e); } try { carpoolCount = (await firebaseClient .Child("TravelPoints") .Child(auth.GetUid()) .OnceSingleAsync <TravelPoints>()).carpoolCount; } catch (Exception e) { Console.Write(e); } try { cycleCount = (await firebaseClient .Child("TravelPoints") .Child(auth.GetUid()) .OnceSingleAsync <TravelPoints>()).cycleCount; } catch (Exception e) { Console.Write(e); } try { ecoCarCount = (await firebaseClient .Child("TravelPoints") .Child(auth.GetUid()) .OnceSingleAsync <TravelPoints>()).ecoCarCount; } catch (Exception e) { Console.Write(e); } try { transportCount = (await firebaseClient .Child("TravelPoints") .Child(auth.GetUid()) .OnceSingleAsync <TravelPoints>()).transportCount; } catch (Exception e) { Console.Write(e); } try { walkCount = (await firebaseClient .Child("TravelPoints") .Child(auth.GetUid()) .OnceSingleAsync <TravelPoints>()).walkCount; } catch (Exception e) { Console.Write(e); } try { billsCount = (await firebaseClient .Child("WastePoints") .Child(auth.GetUid()) .OnceSingleAsync <WastePoints>()).billsCount; } catch (Exception e) { Console.Write(e); } try { compostCount = (await firebaseClient .Child("WastePoints") .Child(auth.GetUid()) .OnceSingleAsync <WastePoints>()).compostCount; } catch (Exception e) { Console.Write(e); } try { setUpRecyclingBinCount = (await firebaseClient .Child("WastePoints") .Child(auth.GetUid()) .OnceSingleAsync <WastePoints>()).setUpRecyclingBinCount; } catch (Exception e) { Console.Write(e); } try { bioBinBagsCount = (await firebaseClient .Child("WastePoints") .Child(auth.GetUid()) .OnceSingleAsync <WastePoints>()).bioBinBagsCount; } catch (Exception e) { Console.Write(e); } try { recyclingBinCount = (await firebaseClient .Child("WastePoints") .Child(auth.GetUid()) .OnceSingleAsync <WastePoints>()).recyclingBinCount; } catch (Exception e) { Console.Write(e); } try { cisternCount = (await firebaseClient .Child("WaterPoints") .Child(auth.GetUid()) .OnceSingleAsync <WaterPoints>()).cisternCount; } catch (Exception e) { Console.Write(e); } try { rainBarrelCount = (await firebaseClient .Child("WaterPoints") .Child(auth.GetUid()) .OnceSingleAsync <WaterPoints>()).rainBarrelCount; } catch (Exception e) { Console.Write(e); } try { reWaterCount = (await firebaseClient .Child("WaterPoints") .Child(auth.GetUid()) .OnceSingleAsync <WaterPoints>()).reWaterCount; } catch (Exception e) { Console.Write(e); } try { showerBucketCount = (await firebaseClient .Child("WaterPoints") .Child(auth.GetUid()) .OnceSingleAsync <WaterPoints>()).showerBucketCount; } catch (Exception e) { Console.Write(e); } try { wSShowerHeadCount = (await firebaseClient .Child("WaterPoints") .Child(auth.GetUid()) .OnceSingleAsync <WaterPoints>()).wSShowerHeadCount; } catch (Exception e) { Console.Write(e); } try { paperCount = (await firebaseClient .Child("WorkPoints") .Child(auth.GetUid()) .OnceSingleAsync <WorkPoints>()).paperCount; } catch (Exception e) { Console.Write(e); } try { offElectronicsCount = (await firebaseClient .Child("WorkPoints") .Child(auth.GetUid()) .OnceSingleAsync <WorkPoints>()).offElectronicsCount; } catch (Exception e) { Console.Write(e); } try { remoteWorkCount = (await firebaseClient .Child("WorkPoints") .Child(auth.GetUid()) .OnceSingleAsync <WorkPoints>()).remoteWorkCount; } catch (Exception e) { Console.Write(e); } }
public UserSessionController(IAuth authUtil) : base(authUtil) { _authStrategyContext = _authUtil.GetCurrentUser(); }
/// <summary> /// Initializes a new instance of the <see cref="UsersController"/> class. /// Used for constructing when Unit Testing. /// </summary> /// <param name="db">Handle to Database stub.</param> /// <param name="auth">Handle to the Authenticator stub.</param> public UsersController(ILabinatorDb db, IAuth auth) { this.db = db; this.auth = auth; }
public OrderHeaderHistoryController(IAuth authUtil, OrderHeaderHistoryApp app) : base(authUtil) { _app = app.SetLoginInfo(_loginInfo); }
public AccountController(IAuth authMethod, [Named("Cache")] IUserRepository repository) { AuthMethod = authMethod; Repository = repository; }