public static void RegisterTypes(IRegisterClient registerClient) { // register all services to be used outside of the project here registerClient.Register(typeof(IStartupService), typeof(StartupService)); registerClient.Register(typeof(ISearchService), typeof(SearchService)); registerClient.Register(typeof(IAccountService), typeof(AccountService)); registerClient.Register(typeof(IRightService), typeof(RightService)); registerClient.Register(typeof(IRoleService), typeof(RoleService)); // register all state machines to be used outside of the project here registerClient.Register(typeof(IAccountStateMachine), typeof(AccountStateMachine)); registerClient.Register(typeof(IRightStateMachine), typeof(RightStateMachine)); registerClient.Register(typeof(IRoleStateMachine), typeof(RoleStateMachine)); // register all validators only be used internally to this project registerClient.Register(typeof(IAccountValidator), typeof(AccountValidator)); registerClient.Register(typeof(IAccountChangeHandler), typeof(AccountChangeHandler)); registerClient.Register(typeof(IRightValidator), typeof(RightValidator)); registerClient.Register(typeof(IRightChangeHandler), typeof(RightChangeHandler)); registerClient.Register(typeof(IRoleValidator), typeof(RoleValidator)); registerClient.Register(typeof(IRoleChangeHandler), typeof(RoleChangeHandler)); // register other tools registerClient.Register(typeof(ICryptoProvider), typeof(CryptoProvider)); registerClient.Register(typeof(ILogProvider), typeof(LogProvider)); }
public LoginMastodonAccount(IMastodonClientRepository clientRepository, IRegisterClient registerClient, IShowAuthUrl showAuthUrl, IShowRegisterClientError showRegisterClientError) { _clientRepository = clientRepository; _registerClient = registerClient; _showAuthUrl = showAuthUrl; _showRegisterClientError = showRegisterClientError; }
public AddMisskeyAccount(IMisskeyAccountRepository accountRepository, IConnectionRepository connectionRepository, IRegisterClient registerClient, IGetAuthorizeUrl getAuthorizeUrl, IShowAuthUrl showAuthUrl, IWaitAuthorize waitAuthorize, IGetAccessToken getAccessToken, IMakeMisskeyConnection makeMisskeyConnection, IShowRegisterClientError showRegisterClientError, IShowAuthorizeError showAuthorizeError) { _accountRepository = accountRepository; _connectionRepository = connectionRepository; _registerClient = registerClient; _getAuthorizeUrl = getAuthorizeUrl; _showAuthUrl = showAuthUrl; _waitAuthorize = waitAuthorize; _getAccessToken = getAccessToken; _makeMisskeyConnection = makeMisskeyConnection; _showRegisterClientError = showRegisterClientError; _showAuthorizeError = showAuthorizeError; }
public static void RegisterTypes(IRegisterClient registerClient) { // register all types to be used inside of the project here registerClient.Register(typeof(IFileStore), typeof(FileSystemFileStore)); // register all types to be used outside of the project here registerClient.Register(typeof(IStartupDal), typeof(StartupDal)); registerClient.Register(typeof(ISearchDal), typeof(SearchDal)); registerClient.Register(typeof(IDal <IAccountDataModel>), typeof(AccountDal)); registerClient.Register(typeof(IAccountDal), typeof(AccountDal)); registerClient.Register(typeof(IDal <IRightDataModel>), typeof(RightDal)); registerClient.Register(typeof(IRightDal), typeof(RightDal)); registerClient.Register(typeof(IDal <IRoleDataModel>), typeof(RoleDal)); registerClient.Register(typeof(IRoleDal), typeof(RoleDal)); }
/// <summary> /// Opens the register client form. /// </summary> /// <returns>Returns true or false depending on /// if the form opened successfully.</returns> public bool OpenRegisterClient() { try { // Creates new form, registers this presenter // and then opens the form as a dialogue to home. m_registerClient = new RegisterClient(); m_registerClient.RegisterPresenter(this); m_registerClient.OpenForm(m_home as Home); } catch (Exception) { return(false); } return(true); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.hello_charge_activity); _transactionAmountEditText = FindViewById <EditText>(Resource.Id.transaction_amount_edit_text); _currencyCodeEditText = FindViewById <EditText>(Resource.Id.currency_code_edit_text); _noteEditText = FindViewById <EditText>(Resource.Id.note_edit_text); _cardCheckbox = FindViewById <CheckBox>(Resource.Id.card_tender_checkbox); _cashCheckbox = FindViewById <CheckBox>(Resource.Id.cash_tender_checkbox); _otherTenderCheckbox = FindViewById <CheckBox>(Resource.Id.other_tender_checkbox); _locationIdEditText = FindViewById <EditText>(Resource.Id.location_id_edit_text); _autoReturnTimeoutEditText = FindViewById <EditText>(Resource.Id.auto_return_timeout_edit_text); _requestMetadataEditText = FindViewById <EditText>(Resource.Id.request_metadata_edit_text); FindViewById <Button>(Resource.Id.oauth_button).Click += (sender, e) => StartOAuth(); FindViewById <FloatingActionButton>(Resource.Id.start_transaction_button).Click += (sender, e) => StartTransaction(); _registerClient = RegisterSdk.CreateClient(this, ClientId); }
protected override void OnCreate (Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.hello_charge_activity); _transactionAmountEditText = FindViewById<EditText>(Resource.Id.transaction_amount_edit_text); _currencyCodeEditText = FindViewById<EditText>(Resource.Id.currency_code_edit_text); _noteEditText = FindViewById<EditText>(Resource.Id.note_edit_text); _cardCheckbox = FindViewById<CheckBox>(Resource.Id.card_tender_checkbox); _cashCheckbox = FindViewById<CheckBox>(Resource.Id.cash_tender_checkbox); _otherTenderCheckbox = FindViewById<CheckBox>(Resource.Id.other_tender_checkbox); _locationIdEditText = FindViewById<EditText>(Resource.Id.location_id_edit_text); _autoReturnTimeoutEditText = FindViewById<EditText>(Resource.Id.auto_return_timeout_edit_text); _requestMetadataEditText = FindViewById<EditText>(Resource.Id.request_metadata_edit_text); FindViewById<Button>(Resource.Id.oauth_button).Click += (sender, e) => StartOAuth(); FindViewById<FloatingActionButton>(Resource.Id.start_transaction_button).Click += (sender, e) => StartTransaction(); _registerClient = RegisterSdk.CreateClient(this, ClientId); }
public static void RegisterTypes(IRegisterClient registerClient) { // add any types used exclusivity in App.Mvc }
public ClientsController(IRegisterClient registerClient) { _registerClient = registerClient; }