public void Startup(ConfigurationLoader loader)
        {
            IConfig config = loader.Config.Configs[GetType().FullName];

            m_AuthInfoService        = loader.GetService <AuthInfoServiceInterface>(config.GetString("AuthInfoService"));
            m_AuthInfoServiceBackend = loader.GetService <AuthInfoServiceInterface>(config.GetString("AuthInfoServiceBackend", config.GetString("AuthInfoService")));
            m_UserID = config.GetString("UserID");
        }
 public void Startup(ConfigurationLoader loader)
 {
     m_UserAccountService    = loader.GetService <UserAccountServiceInterface>(m_UserAccountServiceName);
     m_InventoryService      = loader.GetService <InventoryServiceInterface>(m_InventoryServiceName);
     m_AccountDeleteServices = loader.GetServicesByValue <IUserAccountDeleteServiceInterface>();
     m_AuthInfoService       = loader.GetService <AuthInfoServiceInterface>(m_AuthInfoServiceName);
     m_ServiceURLsGetters    = loader.GetServicesByValue <IServiceURLsGetInterface>();
     loader.CommandRegistry.AddCreateCommand("user", CreateUserCommand);
     loader.CommandRegistry.AddDeleteCommand("user", DeleteUserCommand);
     loader.CommandRegistry.AddChangeCommand("user", ChangeUserCommand);
     loader.CommandRegistry.AddShowCommand("user", ShowUserCommand);
     loader.CommandRegistry.AddShowCommand("serviceurls", ShowServiceUrlsCommand);
     loader.CommandRegistry.AddResetCommand("user", ResetUserPasswordCommand);
 }
Beispiel #3
0
 public void Startup(ConfigurationLoader loader)
 {
     loader.CommandRegistry.AddSaveCommand("iar", SaveIarCommand);
     loader.CommandRegistry.AddLoadCommand("iar", LoadIarCommand);
     m_AuthInfoService    = loader.GetService <AuthInfoServiceInterface>(m_AuthInfoServiceName);
     m_AssetService       = loader.GetService <AssetServiceInterface>(m_AssetServiceName);
     m_InventoryService   = loader.GetService <InventoryServiceInterface>(m_InventoryServiceName);
     m_UserAccountService = loader.GetService <UserAccountServiceInterface>(m_UserAccountServiceName);
     foreach (string avatarNameService in m_AvatarNameServiceNames.Split(','))
     {
         if (!string.IsNullOrEmpty(avatarNameService))
         {
             m_AvatarNameServices.Add(loader.GetService <AvatarNameServiceInterface>(avatarNameService));
         }
     }
 }
Beispiel #4
0
        public void Startup(ConfigurationLoader loader)
        {
            m_AccountDeleteServices = loader.GetServicesByValue <IUserAccountDeleteServiceInterface>();

            m_UserAccountService = loader.GetService <UserAccountServiceInterface>(m_UserAccountServiceName);
            m_AuthInfoService    = loader.GetService <AuthInfoServiceInterface>(m_AuthInfoServiceName);
            var webif = loader.GetAdminWebIF();

            m_WebIF = webif;
            webif.ModuleNames.Add("useraccounts");
            webif.AutoGrantRights["useraccounts.manage"].Add("useraccounts.view");
            webif.AutoGrantRights["useraccounts.delete"].Add("useraccounts.view");
            webif.AutoGrantRights["useraccounts.create"].Add("useraccounts.view");

            webif.JsonMethods.Add("useraccounts.search", HandleUserAccountSearch);
            webif.JsonMethods.Add("useraccount.get", HandleUserAccountGet);
            webif.JsonMethods.Add("useraccount.change", HandleUserAccountChange);
            webif.JsonMethods.Add("useraccount.delete", HandleUserAccountDelete);
            webif.JsonMethods.Add("useraccount.changepassword", HandleUserAccountChangePassword);
            webif.JsonMethods.Add("useraccount.create", HandleUserAccountCreate);
        }