public AvatarServerPostHandler(string url, IAvatarService service, string SessionID, IRegistryCore registry) : base("POST", url) { m_AvatarService = service; m_SessionID = SessionID; m_registry = registry; }
public HomeViewModel() { this.loader = ServiceLocator.Current.GetInstance<IDataLoader>(); this.avatarService = ServiceLocator.Current.GetInstance<IAvatarService>(); this.readLaterManager = ServiceLocator.Current.GetInstance<IReadLaterManager>(); Recommendations = new BindableCollection<RecommendationViewModel>(); }
public void RegionLoaded(Scene scene) { InventoryService = m_scene.InventoryService; AssetService = m_scene.AssetService; UserAccountService = m_scene.UserAccountService; AvatarService = m_scene.AvatarService; }
public AccountController(UserManager <User> userManager, SignInManager <User> signInManager, IAvatarService avatarService, IEmailService emailService) { _userManager = userManager; _signInManager = signInManager; _avatarService = avatarService; _emailService = emailService; }
public UploadAvatarHandler(IHandler handler, IBusClient bus, IAvatarService avatarService, IFileResolver fileResolver) { _handler = handler; _bus = bus; _avatarService = avatarService; _fileResolver = fileResolver; }
public ChangeAvatarController(IAuthService authService, IProfileService profileService, IAvatarService avatarService, IAvatarFilesService avatarFilesService, IGravatarService gravatarService) { _authService = authService; _profileService = profileService; _avatarService = avatarService; _avatarFilesService = avatarFilesService; _gravatarService = gravatarService; }
public InvitationsController(ApplicationDbContext context, IEmailSender emailService, SignInManager <FAUser> signInManager, UserManager <FAUser> userManager, IAvatarService fileService) { _context = context; _emailService = emailService; _signInManager = signInManager; _userManager = userManager; _fileService = fileService; }
public UploadAvatarCommandHandler(IHandler handler, IMediatRBus mediatRBus, IAvatarService avatarService, IFileResolver fileResolver) { _handler = handler.CheckIfNotEmpty(); _mediatRBus = mediatRBus.CheckIfNotEmpty(); _avatarService = avatarService.CheckIfNotEmpty(); _fileResolver = fileResolver.CheckIfNotEmpty(); }
public UserAccountService(IConfigSource config) : base(config) { IConfig userConfig = config.Configs["UserAccountService"]; if (userConfig == null) throw new Exception("No UserAccountService configuration"); string gridServiceDll = userConfig.GetString("GridService", string.Empty); if (gridServiceDll != string.Empty) m_GridService = LoadPlugin<IGridService>(gridServiceDll, new Object[] { config }); string authServiceDll = userConfig.GetString("AuthenticationService", string.Empty); if (authServiceDll != string.Empty) m_AuthenticationService = LoadPlugin<IAuthenticationService>(authServiceDll, new Object[] { config }); string presenceServiceDll = userConfig.GetString("GridUserService", string.Empty); if (presenceServiceDll != string.Empty) m_GridUserService = LoadPlugin<IGridUserService>(presenceServiceDll, new Object[] { config }); string invServiceDll = userConfig.GetString("InventoryService", string.Empty); if (invServiceDll != string.Empty) m_InventoryService = LoadPlugin<IInventoryService>(invServiceDll, new Object[] { config }); string avatarServiceDll = userConfig.GetString("AvatarService", string.Empty); if (avatarServiceDll != string.Empty) m_AvatarService = LoadPlugin<IAvatarService>(avatarServiceDll, new Object[] { config }); m_CreateDefaultAvatarEntries = userConfig.GetBoolean("CreateDefaultAvatarEntries", false); // In case there are several instances of this class in the same process, // the console commands are only registered for the root instance if (m_RootInstance == null && MainConsole.Instance != null) { m_RootInstance = this; MainConsole.Instance.Commands.AddCommand("Users", false, "create user", "create user [<first> [<last> [<pass> [<email> [<user id>]]]]]", "Create a new user", HandleCreateUser); MainConsole.Instance.Commands.AddCommand("Users", false, "reset user password", "reset user password [<first> [<last> [<password>]]]", "Reset a user password", HandleResetUserPassword); MainConsole.Instance.Commands.AddCommand("Users", false, "set user level", "set user level [<first> [<last> [<level>]]]", "Set user level. If >= 200 and 'allow_grid_gods = true' in OpenSim.ini, " + "this account will be treated as god-moded. " + "It will also affect the 'login level' command. ", HandleSetUserLevel); MainConsole.Instance.Commands.AddCommand("Users", false, "show account", "show account <first> <last>", "Show account details for the given user", HandleShowAccount); } }
public IndexModel( UserManager <MovieDatabaseUser> userManager, SignInManager <MovieDatabaseUser> signInManager, IAvatarService avatarService) { this.userManager = userManager; this.signInManager = signInManager; this.avatarService = avatarService; }
public ChatController(IHubContext <ChatHub> hubContext, UserManager <User> userManager, IAvatarService avatarService, IMessageService messageService, IConversationService conversationService) { _hubContext = hubContext; _userManager = userManager; _avatarService = avatarService; _messageService = messageService; _conversationService = conversationService; }
public ProfileService(UnitOfWork uow, IConfiguration config, IHttpContextAccessor httpContextAccessor, IMapper mapper, IMemberService memberService, IAvatarService avatarService) : base(uow, mapper) { _config = config; _memberService = memberService; _httpContextAccessor = httpContextAccessor; _isDemo = bool.Parse(_config["DemoSiteMode"]); _avatarService = avatarService; }
public NewPrinter(IAvatarService aService) { _aService = aService; Console.WriteLine("Welcome Seven Deadly Sins maniac! :)"); Console.WriteLine("Welcome to SDS!\n Choose one of the following options to begin your adventure!"); }
public void Start(IConfigSource config, IRegistryCore registry) { m_registry = registry; UserAccountService = registry.RequestModuleInterface <IUserAccountService>(); AvatarService = registry.RequestModuleInterface <IAvatarService>(); AssetService = registry.RequestModuleInterface <IAssetService>(); InventoryService = registry.RequestModuleInterface <IInventoryService>(); m_registry.RegisterModuleInterface <IAvatarAppearanceArchiver>(this); }
public ManageController(IAvatarService avatarService, IUserIdentityFacade identityFacade, IApplicationUserManagerFacade applicationUserManager, IApplicationSignInManagerFacade applicationSignInManager) { _avatarService = avatarService; _identityFacade = identityFacade; _applicationUserManager = applicationUserManager; _applicationSignInManager = applicationSignInManager; }
public void PostStart(IConfigSource config, IRegistryCore registry) { IConfig handlerConfig = config.Configs["Handlers"]; if (handlerConfig.GetString("AvatarInHandler", "") != Name) return; IHttpServer server = registry.RequestModuleInterface<ISimulationBase>().GetHttpServer((uint)handlerConfig.GetInt("AvatarInHandlerPort")); m_AvatarService = registry.RequestModuleInterface<IAvatarService>(); server.AddStreamHandler(new AvatarServerPostHandler(m_AvatarService)); }
public ServiceController( IMemberService service, IMemberProjectRoleService roleService, IRefreshDataBaseService refreshDataBaseService, IAvatarService avatarService, ILogger <ServiceController> logger) : base(logger, service) { _roleService = roleService; _refreshDataBaseService = refreshDataBaseService; _avatarService = avatarService; }
public static void AddAvatarService(PlayerIdProvidedTypes type, IAvatarService avatarService) { if (AvatarServices._allAvatarServices.ContainsKey(type)) { AvatarServices._allAvatarServices[type] = avatarService; } else { AvatarServices._allAvatarServices.Add(type, avatarService); } }
public HGSuitcaseInventoryService(IConfigSource config, string configName) : base(config, configName) { m_log.DebugFormat("[HG SUITCASE INVENTORY SERVICE]: Starting with config name {0}", configName); if (configName != string.Empty) { m_ConfigName = configName; } if (m_Database == null) { m_log.ErrorFormat("[HG SUITCASE INVENTORY SERVICE]: m_Database is null!"); } // // Try reading the [InventoryService] section, if it exists // IConfig invConfig = config.Configs[m_ConfigName]; if (invConfig != null) { string userAccountsDll = invConfig.GetString("UserAccountsService", string.Empty); if (userAccountsDll == string.Empty) { throw new Exception("Please specify UserAccountsService in HGInventoryService configuration"); } Object[] args = new Object[] { config }; m_UserAccountService = ServerUtils.LoadPlugin <IUserAccountService>(userAccountsDll, args); if (m_UserAccountService == null) { throw new Exception(String.Format("Unable to create UserAccountService from {0}", userAccountsDll)); } string avatarDll = invConfig.GetString("AvatarService", string.Empty); if (avatarDll == string.Empty) { throw new Exception("Please specify AvatarService in HGInventoryService configuration"); } m_AvatarService = ServerUtils.LoadPlugin <IAvatarService>(avatarDll, args); if (m_AvatarService == null) { throw new Exception(String.Format("Unable to create m_AvatarService from {0}", avatarDll)); } // m_HomeURL = Util.GetConfigVarFromSections<string>(config, "HomeURI", // new string[] { "Startup", "Hypergrid", m_ConfigName }, String.Empty); // m_Cache = UserAccountCache.CreateUserAccountCache(m_UserAccountService); } m_log.Debug("[HG SUITCASE INVENTORY SERVICE]: Starting..."); }
public UserController( IUserService userService, IAddressService addressService, IAvatarService avatarService, IRsaService rsaService ) { _userService = userService; _addressService = addressService; _avatarService = avatarService; _rsaService = rsaService; }
public AccountController(ApplicationUserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, ISiteService siteService, IAvatarService avatarService, IEventLogService eventLogService) { this.userManager = userManager; this.signInManager = signInManager; this.siteService = siteService; this.avatarService = avatarService; this.eventLogService = eventLogService; }
public void Start(IConfigSource config, IRegistryCore registry) { if (!m_enabled) { return; } m_assetService = registry.RequestModuleInterface <IAssetService>(); m_inventoryService = registry.RequestModuleInterface <IInventoryService>(); m_avatarService = registry.RequestModuleInterface <IAvatarService>(); m_assetService = registry.RequestModuleInterface <IAssetService>(); MainConsole.Instance.Commands.AddCommand("bake avatar", "bake avatar", "Bakes an avatar's appearance", BakeAvatar, false, true); }
public RegisterModel( UserManager <FAUser> userManager, SignInManager <FAUser> signInManager, ILogger <RegisterModel> logger, IEmailSender emailSender, IAvatarService fileService) { _userManager = userManager; _signInManager = signInManager; _logger = logger; _emailSender = emailSender; _fileService = fileService; }
public GravatarControl() { InitializeComponent(); Translate(); noneToolStripMenuItem.Tag = DefaultImageType.None; identiconToolStripMenuItem.Tag = DefaultImageType.Identicon; monsterIdToolStripMenuItem.Tag = DefaultImageType.MonsterId; wavatarToolStripMenuItem.Tag = DefaultImageType.Wavatar; retroToolStripMenuItem.Tag = DefaultImageType.Retro; _avatarCache = new DirectoryImageCache(AppSettings.GravatarCachePath, AppSettings.AuthorImageCacheDays); _gravatarService = new GravatarService(_avatarCache); }
public ManageController(ApplicationUserManager userManager, ApplicationSignInManager signInManager, IAuthenticationManager authenticationManager, IUserContext userContext, IMembershipService membershipService, IAvatarService avatarService) { _userManager = userManager; _signInManager = signInManager; _authenticationManager = authenticationManager; _userContext = userContext; _membershipService = membershipService; _avatarService = avatarService; }
public void Start (IConfigSource config, IRegistryCore registry) { if (!m_enabled) return; m_assetService = registry.RequestModuleInterface<IAssetService> (); m_inventoryService = registry.RequestModuleInterface<IInventoryService> (); m_avatarService = registry.RequestModuleInterface<IAvatarService> (); m_assetService = registry.RequestModuleInterface<IAssetService> (); MainConsole.Instance.Commands.AddCommand ( "bake avatar", "bake avatar [firstname lastname]", "Bakes an avatar's appearance", HandleBakeAvatar, false, true); }
public ManageController( UserManager<User> userManager, SignInManager<User> signInManager, IEmailSender emailSender, ISmsSender smsSender, ILoggerFactory loggerFactory, IAvatarService avatarService, IMembershipService membershipService) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _smsSender = smsSender; _logger = loggerFactory.CreateLogger<ManageController>(); _avatarService = avatarService; _membershipService = membershipService; }
public ManageController( UserManager <User> userManager, SignInManager <User> signInManager, IEmailSender emailSender, ISmsSender smsSender, ILoggerFactory loggerFactory, IAvatarService avatarService, IMembershipService membershipService) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _smsSender = smsSender; _logger = loggerFactory.CreateLogger <ManageController>(); _avatarService = avatarService; _membershipService = membershipService; }
public ProfileManager( ILogger <ProfileManager> logger, IOptionsMonitor <XperienceOptions> optionsMonitor, IFileService fileService, IUserModelService userModelService, IAvatarService avatarService, ISiteService siteService, IMedioClinicUserManager <MedioClinicUser> userManager ) : base(logger, userManager) { _optionsMonitor = optionsMonitor ?? throw new ArgumentNullException(nameof(optionsMonitor)); _fileService = fileService ?? throw new ArgumentNullException(nameof(fileService)); _userModelService = userModelService ?? throw new ArgumentNullException(nameof(userModelService)); _avatarService = avatarService ?? throw new ArgumentNullException(nameof(avatarService)); _siteService = siteService ?? throw new ArgumentNullException(nameof(siteService)); }
public Services(IConfigSource config, string configName, WebApp webApp) { m_log.Debug("[Wifi]: Services Starting..."); m_WebApp = webApp; m_ServerAdminPassword = webApp.RemoteAdminPassword; //m_log.DebugFormat("[Services]: RemoteAdminPassword is {0}", m_ServerAdminPassword); m_LastStatisticsUpdate = new DateTime(); // Create the necessary services m_UserAccountService = new UserAccountService(config); m_AuthenticationService = new PasswordAuthenticationService(config); m_InventoryService = new InventoryService(config); m_AssetService = new AssetService(config); m_GridService = new GridService(config); m_GridUserService = new GridUserService(config); m_AvatarService = new AvatarService(config); m_PresenceService = new PresenceService(config); m_GroupsService = new GroupsService(config); // Create the "God" account if it doesn't exist CreateGod(); if (m_WebApp.BypassCertificateVerification) { ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return(true); } } ; // Connect to our outgoing mail server for password forgetfulness m_Client = new SmtpClient(m_WebApp.SmtpHost, m_WebApp.SmtpPort); if (m_WebApp.SmtpPort == 25) { m_Client.EnableSsl = false; } else { m_Client.EnableSsl = true; } m_Client.Credentials = new NetworkCredential(m_WebApp.SmtpUsername, m_WebApp.SmtpPassword); m_Client.SendCompleted += new SendCompletedEventHandler(SendCompletedCallback); }
public SignInHandler(IHandler handler, IBusClient bus, IUserService userService, IFacebookService facebookService, IAuthenticationService authenticationService, IAvatarService avatarService, IFileResolver fileResolver, IResourceFactory resourceFactory) { _handler = handler; _bus = bus; _userService = userService; _facebookService = facebookService; _authenticationService = authenticationService; _avatarService = avatarService; _fileResolver = fileResolver; _resourceFactory = resourceFactory; }
public AvatarServiceConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { IConfig serverConfig = config.Configs[m_ConfigName]; if (serverConfig == null) throw new Exception(String.Format("No section {0} in config file", m_ConfigName)); string avatarService = serverConfig.GetString("LocalServiceModule", String.Empty); if (avatarService == String.Empty) throw new Exception("No LocalServiceModule in config file"); Object[] args = new Object[] { config }; m_AvatarService = ServerUtils.LoadPlugin<IAvatarService>(avatarService, args); server.AddStreamHandler(new AvatarServerPostHandler(m_AvatarService)); }
public AccountDGController(ApplicationUserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IMessageService emailService, ISiteService siteService, IAvatarService avatarService, IMembershipActivityLogger membershipActivitiesLogger, IStringLocalizer <SharedResources> localizer, IEventLogService eventLogService) { this.userManager = userManager; this.signInManager = signInManager; this.emailService = emailService; this.siteService = siteService; this.avatarService = avatarService; this.membershipActivitiesLogger = membershipActivitiesLogger; this.localizer = localizer; this.eventLogService = eventLogService; }
protected static void Initialize() { UserId = "userId"; Username = "******"; Email = "*****@*****.**"; ExternalId = "externalId"; Provider = Providers.Collectively; Password = "******"; Hash = "hash"; Role = Roles.User; FileHandlerMock = new Mock <IFileHandler>(); ImageServiceMock = new Mock <IImageService>(); FileValidatorMock = new Mock <IFileValidator>(); UserRepositoryMock = new Mock <IUserRepository>(); File = File.Create("avatar.jpg", "image/jpeg", new byte[] { 0x1 }); AvatarService = new AvatarService(UserRepositoryMock.Object, FileHandlerMock.Object, ImageServiceMock.Object, FileValidatorMock.Object); FileValidatorMock.Setup(x => x.IsImage(File)).Returns(true); User = new User(UserId, Email, Role, Provider); }
public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("AvatarServices", ""); if (name == Name) { IConfig userConfig = source.Configs["AvatarService"]; if (userConfig == null) { m_log.Error("[AVATAR CONNECTOR]: AvatarService missing from OpenSim.ini"); return; } string serviceDll = userConfig.GetString("LocalServiceModule", String.Empty); if (serviceDll == String.Empty) { m_log.Error("[AVATAR CONNECTOR]: No LocalServiceModule named in section AvatarService"); return; } Object[] args = new Object[] { source }; m_AvatarService = ServerUtils.LoadPlugin <IAvatarService>(serviceDll, args); if (m_AvatarService == null) { m_log.Error("[AVATAR CONNECTOR]: Can't load user account service"); return; } m_Enabled = true; m_log.Info("[AVATAR CONNECTOR]: Local avatar connector enabled"); } } }
public AvatarServiceConnector(IConfigSource config, IHttpServer server, string configName) : base(config, server, configName) { IConfig serverConfig = config.Configs[m_ConfigName]; if (serverConfig == null) { throw new Exception(String.Format("No section {0} in config file", m_ConfigName)); } string avatarService = serverConfig.GetString("LocalServiceModule", String.Empty); if (avatarService == String.Empty) { throw new Exception("No LocalServiceModule in config file"); } Object[] args = new Object[] { config }; m_AvatarService = ServerUtils.LoadPlugin <IAvatarService>(avatarService, args); server.AddStreamHandler(new AvatarServerPostHandler(m_AvatarService)); }
public void Start(IConfigSource config, IRegistryCore registry) { m_UserAccountService = registry.RequestModuleInterface<IUserAccountService>().InnerService; m_agentInfoService = registry.RequestModuleInterface<IAgentInfoService>().InnerService; m_AuthenticationService = registry.RequestModuleInterface<IAuthenticationService>(); m_InventoryService = registry.RequestModuleInterface<IInventoryService>(); m_GridService = registry.RequestModuleInterface<IGridService>(); m_AvatarService = registry.RequestModuleInterface<IAvatarService>().InnerService; m_FriendsService = registry.RequestModuleInterface<IFriendsService>(); m_SimulationService = registry.RequestModuleInterface<ISimulationService>(); m_AssetService = registry.RequestModuleInterface<IAssetService> ().InnerService; m_LibraryService = registry.RequestModuleInterface<ILibraryService>(); m_CapsService = registry.RequestModuleInterface<ICapsService>(); if (!Initialized) { Initialized = true; RegisterCommands(); } //Start the grid profile archiver. new GridAvatarProfileArchiver(m_UserAccountService); archiver = new GridAvatarArchiver(m_UserAccountService, m_AvatarService, m_InventoryService, m_AssetService); LoginModules = Aurora.Framework.AuroraModuleLoader.PickupModules<ILoginModule>(); foreach (ILoginModule module in LoginModules) { module.Initialize(this, m_config, m_UserAccountService); } m_log.DebugFormat("[LLOGIN SERVICE]: Starting..."); }
public GridAvatarArchiver (IUserAccountService ACS, IAvatarService AS, IInventoryService IS, IAssetService AService) { UserAccountService = ACS; AvatarService = AS; InventoryService = IS; AssetService = AService; if (MainConsole.Instance != null) { MainConsole.Instance.Commands.AddCommand ("save avatar archive", "save avatar archive <First> <Last> <Filename> <FolderNameToSaveInto> [<Snapshot UUID>] [<Public>]", "Saves appearance to an avatar archive archive (Note: put \"\" around the FolderName if you need more than one word. To save to the database ensure the name ends with .database. Snapshot is a uuid of the a snapshot of this archive. IsPublic should be a 0 or 1. IsPublic and Snapshot are only saved when saving to the database. )", HandleSaveAvatarArchive); MainConsole.Instance.Commands.AddCommand ("load avatar archive", "load avatar archive <First> <Last> <Filename>", "Loads appearance from an avatar archive archive", HandleLoadAvatarArchive); } }
public GridAvatarArchiver(IUserAccountService ACS, IAvatarService AS, IInventoryService IS) { UserAccountService = ACS; AvatarService = AS; InventoryService = IS; MainConsole.Instance.Commands.AddCommand("region", false, "save avatar archive", "save avatar archive <First> <Last> <Filename> <FolderNameToSaveInto>", "Saves appearance to an avatar archive archive (Note: put \"\" around the FolderName if you need more than one word)", HandleSaveAvatarArchive); MainConsole.Instance.Commands.AddCommand("region", false, "load avatar archive", "load avatar archive <First> <Last> <Filename>", "Loads appearance from an avatar archive archive", HandleLoadAvatarArchive); }
public AvatarServerPostHandler(IAvatarService service) : base("POST", "/avatar") { m_AvatarService = service; }
public UserMembershipProvider(IUserService userService, IAvatarService avatarService, IRoleService roleService) { this.userService = userService; this.avatarService = avatarService; this.roleService = roleService; }
public HGSuitcaseInventoryService(IConfigSource config, string configName) : base(config, configName) { m_log.DebugFormat("[HG SUITCASE INVENTORY SERVICE]: Starting with config name {0}", configName); if (configName != string.Empty) m_ConfigName = configName; if (m_Database == null) m_log.ErrorFormat("[HG SUITCASE INVENTORY SERVICE]: m_Database is null!"); // // Try reading the [InventoryService] section, if it exists // IConfig invConfig = config.Configs[m_ConfigName]; if (invConfig != null) { string userAccountsDll = invConfig.GetString("UserAccountsService", string.Empty); if (userAccountsDll == string.Empty) throw new Exception("Please specify UserAccountsService in HGInventoryService configuration"); Object[] args = new Object[] { config }; m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(userAccountsDll, args); if (m_UserAccountService == null) throw new Exception(String.Format("Unable to create UserAccountService from {0}", userAccountsDll)); string avatarDll = invConfig.GetString("AvatarService", string.Empty); if (avatarDll == string.Empty) throw new Exception("Please specify AvatarService in HGInventoryService configuration"); m_AvatarService = ServerUtils.LoadPlugin<IAvatarService>(avatarDll, args); if (m_AvatarService == null) throw new Exception(String.Format("Unable to create m_AvatarService from {0}", avatarDll)); // Preferred m_HomeURL = invConfig.GetString("HomeURI", m_HomeURL); // m_Cache = UserAccountCache.CreateUserAccountCache(m_UserAccountService); } m_log.Debug("[HG SUITCASE INVENTORY SERVICE]: Starting..."); }
public LLLoginService(IConfigSource config, ISimulationService simService, ILibraryService libraryService) { m_LoginServerConfig = config.Configs["LoginService"]; if (m_LoginServerConfig == null) throw new Exception(String.Format("No section LoginService in config file")); string accountService = m_LoginServerConfig.GetString("UserAccountService", String.Empty); string gridUserService = m_LoginServerConfig.GetString("GridUserService", String.Empty); string agentService = m_LoginServerConfig.GetString("UserAgentService", String.Empty); string authService = m_LoginServerConfig.GetString("AuthenticationService", String.Empty); string invService = m_LoginServerConfig.GetString("InventoryService", String.Empty); string gridService = m_LoginServerConfig.GetString("GridService", String.Empty); string presenceService = m_LoginServerConfig.GetString("PresenceService", String.Empty); string libService = m_LoginServerConfig.GetString("LibraryService", String.Empty); string friendsService = m_LoginServerConfig.GetString("FriendsService", String.Empty); string avatarService = m_LoginServerConfig.GetString("AvatarService", String.Empty); string simulationService = m_LoginServerConfig.GetString("SimulationService", String.Empty); m_DefaultRegionName = m_LoginServerConfig.GetString("DefaultRegion", String.Empty); m_WelcomeMessage = m_LoginServerConfig.GetString("WelcomeMessage", "Welcome to OpenSim!"); m_RequireInventory = m_LoginServerConfig.GetBoolean("RequireInventory", true); m_AllowRemoteSetLoginLevel = m_LoginServerConfig.GetBoolean("AllowRemoteSetLoginLevel", false); m_MinLoginLevel = m_LoginServerConfig.GetInt("MinLoginLevel", 0); m_GatekeeperURL = m_LoginServerConfig.GetString("GatekeeperURI", string.Empty); m_MapTileURL = m_LoginServerConfig.GetString("MapTileURL", string.Empty); m_SearchURL = m_LoginServerConfig.GetString("SearchURL", string.Empty); m_AllowedClients = m_LoginServerConfig.GetString("AllowedClients", string.Empty); m_DeniedClients = m_LoginServerConfig.GetString("DeniedClients", string.Empty); // These are required; the others aren't if (accountService == string.Empty || authService == string.Empty) throw new Exception("LoginService is missing service specifications"); Object[] args = new Object[] { config }; m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); if (gridService != string.Empty) m_GridService = ServerUtils.LoadPlugin<IGridService>(gridService, args); if (presenceService != string.Empty) m_PresenceService = ServerUtils.LoadPlugin<IPresenceService>(presenceService, args); if (avatarService != string.Empty) m_AvatarService = ServerUtils.LoadPlugin<IAvatarService>(avatarService, args); if (friendsService != string.Empty) m_FriendsService = ServerUtils.LoadPlugin<IFriendsService>(friendsService, args); if (simulationService != string.Empty) m_RemoteSimulationService = ServerUtils.LoadPlugin<ISimulationService>(simulationService, args); if (agentService != string.Empty) m_UserAgentService = ServerUtils.LoadPlugin<IUserAgentService>(agentService, args); // // deal with the services given as argument // m_LocalSimulationService = simService; if (libraryService != null) { m_log.DebugFormat("[LLOGIN SERVICE]: Using LibraryService given as argument"); m_LibraryService = libraryService; } else if (libService != string.Empty) { m_log.DebugFormat("[LLOGIN SERVICE]: Using instantiated LibraryService"); m_LibraryService = ServerUtils.LoadPlugin<ILibraryService>(libService, args); } m_GatekeeperConnector = new GatekeeperServiceConnector(); if (!Initialized) { Initialized = true; RegisterCommands(); } m_log.DebugFormat("[LLOGIN SERVICE]: Starting..."); }
public LLLoginService(IConfigSource config, ISimulationService simService, ILibraryService libraryService) { m_config = config; m_AuroraLoginConfig = config.Configs["AuroraLoginService"]; if (m_AuroraLoginConfig != null) { m_UseTOS = m_AuroraLoginConfig.GetBoolean("UseTermsOfServiceOnFirstLogin", false); m_DefaultHomeRegion = m_AuroraLoginConfig.GetString("DefaultHomeRegion", ""); m_DefaultUserAvatarArchive = m_AuroraLoginConfig.GetString("DefaultAvatarArchiveForNewUser", ""); m_AllowAnonymousLogin = m_AuroraLoginConfig.GetBoolean("AllowAnonymousLogin", false); m_AuthenticateUsers = m_AuroraLoginConfig.GetBoolean("AuthenticateUsers", true); m_TOSLocation = m_AuroraLoginConfig.GetString("FileNameOfTOS", ""); m_AllowFirstLife = m_AuroraLoginConfig.GetBoolean("AllowFirstLifeInProfile", true); m_TutorialURL = m_AuroraLoginConfig.GetString("TutorialURL", m_TutorialURL); ReadEventValues(m_AuroraLoginConfig); ReadClassifiedValues(m_AuroraLoginConfig); CAPSServerURL = m_AuroraLoginConfig.GetString("CAPSServiceURL", ""); CAPSServicePassword = m_AuroraLoginConfig.GetString("CAPSServicePassword", ""); } m_LoginServerConfig = config.Configs["LoginService"]; if (m_LoginServerConfig == null) throw new Exception(String.Format("No section LoginService in config file")); string accountService = m_LoginServerConfig.GetString("UserAccountService", String.Empty); string gridUserService = m_LoginServerConfig.GetString("GridUserService", String.Empty); string agentService = m_LoginServerConfig.GetString("UserAgentService", String.Empty); string authService = m_LoginServerConfig.GetString("AuthenticationService", String.Empty); string invService = m_LoginServerConfig.GetString("InventoryService", String.Empty); string gridService = m_LoginServerConfig.GetString("GridService", String.Empty); string presenceService = m_LoginServerConfig.GetString("PresenceService", String.Empty); string libService = m_LoginServerConfig.GetString("LibraryService", String.Empty); string friendsService = m_LoginServerConfig.GetString("FriendsService", String.Empty); string avatarService = m_LoginServerConfig.GetString("AvatarService", String.Empty); string simulationService = m_LoginServerConfig.GetString("SimulationService", String.Empty); m_DefaultRegionName = m_LoginServerConfig.GetString("DefaultRegion", String.Empty); m_WelcomeMessage = m_LoginServerConfig.GetString("WelcomeMessage", "Welcome to OpenSim!"); m_RequireInventory = m_LoginServerConfig.GetBoolean("RequireInventory", true); m_AllowRemoteSetLoginLevel = m_LoginServerConfig.GetBoolean("AllowRemoteSetLoginLevel", false); m_MinLoginLevel = m_LoginServerConfig.GetInt("MinLoginLevel", 0); m_GatekeeperURL = m_LoginServerConfig.GetString("GatekeeperURI", string.Empty); m_MapTileURL = m_LoginServerConfig.GetString("MapTileURL", string.Empty); m_SearchURL = m_LoginServerConfig.GetString("SearchURL", string.Empty); // These are required; the others aren't if (accountService == string.Empty || authService == string.Empty) throw new Exception("LoginService is missing service specifications"); Object[] args = new Object[] { config }; m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); if (gridService != string.Empty) m_GridService = ServerUtils.LoadPlugin<IGridService>(gridService, args); if (presenceService != string.Empty) m_PresenceService = ServerUtils.LoadPlugin<IPresenceService>(presenceService, args); if (avatarService != string.Empty) m_AvatarService = ServerUtils.LoadPlugin<IAvatarService>(avatarService, args); if (friendsService != string.Empty) m_FriendsService = ServerUtils.LoadPlugin<IFriendsService>(friendsService, args); if (simulationService != string.Empty) m_RemoteSimulationService = ServerUtils.LoadPlugin<ISimulationService>(simulationService, args); if (agentService != string.Empty) m_UserAgentService = ServerUtils.LoadPlugin<IUserAgentService>(agentService, args); // // deal with the services given as argument // m_LocalSimulationService = simService; if (libraryService != null) { m_log.DebugFormat("[LLOGIN SERVICE]: Using LibraryService given as argument"); m_LibraryService = libraryService; } else if (libService != string.Empty) { m_log.DebugFormat("[LLOGIN SERVICE]: Using instantiated LibraryService"); m_LibraryService = ServerUtils.LoadPlugin<ILibraryService>(libService, args); } m_GatekeeperConnector = new GatekeeperServiceConnector(); if (!Initialized) { Initialized = true; RegisterCommands(); } //Start the grid profile archiver. new GridAvatarProfileArchiver(m_UserAccountService); archiver = new GridAvatarArchiver(m_UserAccountService, m_AvatarService, m_InventoryService); LoginModules = Aurora.Framework.AuroraModuleLoader.PickupModules<ILoginModule>(); foreach (ILoginModule module in LoginModules) { module.Initialize(this, config, m_UserAccountService); } m_log.DebugFormat("[LLOGIN SERVICE]: Starting..."); }
public void Start (IConfigSource config, IRegistryCore registry) { m_registry = registry; userAccountService = registry.RequestModuleInterface<IUserAccountService> (); avatarService = registry.RequestModuleInterface<IAvatarService> (); assetService = registry.RequestModuleInterface<IAssetService> (); assetGatherer = new UuidGatherer (assetService); inventoryService = registry.RequestModuleInterface<IInventoryService> (); m_registry.RegisterModuleInterface<IAvatarAppearanceArchiver> (this); }
public AvatarServerPostHandler(IAvatarService service, IServiceAuth auth) : base("POST", "/avatar", auth) { m_AvatarService = service; }
public AvatarController(IAvatarService avatarService) { _avatarService = avatarService; }
public AccountController(IUserService userService, IAvatarService avatarService, IRoleService roleService) { membershipProvider = new UserMembershipProvider(userService, avatarService, roleService); }
public void PostInitialize(IConfigSource config, IRegistryCore registry) { m_AvatarService = registry.RequestModuleInterface<IAvatarService>(); }
public void Initialise(IConfigSource source) { IConfig moduleConfig = source.Configs["Modules"]; if (moduleConfig != null) { string name = moduleConfig.GetString("AvatarServices", ""); if (name == Name) { IConfig userConfig = source.Configs["AvatarService"]; if (userConfig == null) { m_log.Error("[AVATAR CONNECTOR]: AvatarService missing from OpenSim.ini"); return; } string serviceDll = userConfig.GetString("LocalServiceModule", String.Empty); if (serviceDll == String.Empty) { m_log.Error("[AVATAR CONNECTOR]: No LocalServiceModule named in section AvatarService"); return; } Object[] args = new Object[] { source }; m_AvatarService = ServerUtils.LoadPlugin<IAvatarService>(serviceDll, args); if (m_AvatarService == null) { m_log.Error("[AVATAR CONNECTOR]: Can't load user account service"); return; } m_Enabled = true; m_log.Info("[AVATAR CONNECTOR]: Local avatar connector enabled"); } } }
public void PostInitialize(IConfigSource config, IRegistryCore registry) { m_UserAccountService = registry.RequestModuleInterface<IUserAccountService>(); m_GridUserService = registry.RequestModuleInterface<IGridUserService>(); m_AuthenticationService = registry.RequestModuleInterface<IAuthenticationService>(); m_InventoryService = registry.RequestModuleInterface<IInventoryService>(); m_GridService = registry.RequestModuleInterface<IGridService>(); m_PresenceService = registry.RequestModuleInterface<IPresenceService>(); m_AvatarService = registry.RequestModuleInterface<IAvatarService>(); m_FriendsService = registry.RequestModuleInterface<IFriendsService>(); m_SimulationService = registry.RequestModuleInterface<ISimulationService>(); m_AssetService = registry.RequestModuleInterface<IAssetService>(); m_LibraryService = registry.RequestModuleInterface<ILibraryService>(); m_CapsService = registry.RequestModuleInterface<ICapsService>(); }
public void Start(IConfigSource config, IRegistryCore registry) { m_UserAccountService = registry.RequestModuleInterface<IUserAccountService>().InnerService; m_agentInfoService = registry.RequestModuleInterface<IAgentInfoService>().InnerService; m_AuthenticationService = registry.RequestModuleInterface<IAuthenticationService>(); m_InventoryService = registry.RequestModuleInterface<IInventoryService>(); m_GridService = registry.RequestModuleInterface<IGridService>(); m_AvatarService = registry.RequestModuleInterface<IAvatarService>().InnerService; m_FriendsService = registry.RequestModuleInterface<IFriendsService>(); m_SimulationService = registry.RequestModuleInterface<ISimulationService>(); m_AssetService = registry.RequestModuleInterface<IAssetService>().InnerService; m_LibraryService = registry.RequestModuleInterface<ILibraryService>(); m_CapsService = registry.RequestModuleInterface<ICapsService>(); m_ArchiveService = registry.RequestModuleInterface<IAvatarAppearanceArchiver>(); if (!Initialized) { Initialized = true; RegisterCommands(); } LoginModules = WhiteCoreModuleLoader.PickupModules<ILoginModule>(); foreach (ILoginModule module in LoginModules) { module.Initialize(this, m_config, registry); } MainConsole.Instance.DebugFormat("[LLOGIN SERVICE]: Starting..."); }
public UserController(IUserService userService, IAvatarService avatarService) { _userService = userService; _avatarService = avatarService; }
// IConfig m_ClientsConfig; public LLLoginService(IConfigSource config, ISimulationService simService, ILibraryService libraryService) { m_LoginServerConfig = config.Configs["LoginService"]; if (m_LoginServerConfig == null) { throw new Exception(String.Format("No section LoginService in config file")); } string accountService = m_LoginServerConfig.GetString("UserAccountService", String.Empty); string gridUserService = m_LoginServerConfig.GetString("GridUserService", String.Empty); string agentService = m_LoginServerConfig.GetString("UserAgentService", String.Empty); string authService = m_LoginServerConfig.GetString("AuthenticationService", String.Empty); string invService = m_LoginServerConfig.GetString("InventoryService", String.Empty); string gridService = m_LoginServerConfig.GetString("GridService", String.Empty); string presenceService = m_LoginServerConfig.GetString("PresenceService", String.Empty); string libService = m_LoginServerConfig.GetString("LibraryService", String.Empty); string friendsService = m_LoginServerConfig.GetString("FriendsService", String.Empty); string avatarService = m_LoginServerConfig.GetString("AvatarService", String.Empty); string simulationService = m_LoginServerConfig.GetString("SimulationService", String.Empty); m_DefaultRegionName = m_LoginServerConfig.GetString("DefaultRegion", String.Empty); m_WelcomeMessage = m_LoginServerConfig.GetString("WelcomeMessage", "Welcome to OpenSim!"); m_RequireInventory = m_LoginServerConfig.GetBoolean("RequireInventory", true); m_AllowRemoteSetLoginLevel = m_LoginServerConfig.GetBoolean("AllowRemoteSetLoginLevel", false); m_MinLoginLevel = m_LoginServerConfig.GetInt("MinLoginLevel", 0); m_GatekeeperURL = Util.GetConfigVarFromSections <string>(config, "GatekeeperURI", new string[] { "Startup", "Hypergrid", "LoginService" }, String.Empty); m_MapTileURL = m_LoginServerConfig.GetString("MapTileURL", string.Empty); m_ProfileURL = m_LoginServerConfig.GetString("ProfileServerURL", string.Empty); m_OpenIDURL = m_LoginServerConfig.GetString("OpenIDServerURL", String.Empty); m_SearchURL = m_LoginServerConfig.GetString("SearchURL", string.Empty); m_Currency = m_LoginServerConfig.GetString("Currency", string.Empty); m_ClassifiedFee = m_LoginServerConfig.GetString("ClassifiedFee", string.Empty); m_DestinationGuide = m_LoginServerConfig.GetString("DestinationGuide", string.Empty); m_AvatarPicker = m_LoginServerConfig.GetString("AvatarPicker", string.Empty); m_AllowedClients = m_LoginServerConfig.GetString("AllowedClients", string.Empty); m_DeniedClients = m_LoginServerConfig.GetString("DeniedClients", string.Empty); m_DSTZone = m_LoginServerConfig.GetString("DSTZone", "America/Los_Angeles;Pacific Standard Time"); // Clean up some of these vars if (m_MapTileURL != String.Empty) { m_MapTileURL = m_MapTileURL.Trim(); if (!m_MapTileURL.EndsWith("/")) { m_MapTileURL = m_MapTileURL + "/"; } } // These are required; the others aren't if (accountService == string.Empty || authService == string.Empty) { throw new Exception("LoginService is missing service specifications"); } // replace newlines in welcome message m_WelcomeMessage = m_WelcomeMessage.Replace("\\n", "\n"); Object[] args = new Object[] { config }; m_UserAccountService = ServerUtils.LoadPlugin <IUserAccountService>(accountService, args); m_GridUserService = ServerUtils.LoadPlugin <IGridUserService>(gridUserService, args); m_AuthenticationService = ServerUtils.LoadPlugin <IAuthenticationService>(authService, args); m_InventoryService = ServerUtils.LoadPlugin <IInventoryService>(invService, args); if (gridService != string.Empty) { m_GridService = ServerUtils.LoadPlugin <IGridService>(gridService, args); } if (presenceService != string.Empty) { m_PresenceService = ServerUtils.LoadPlugin <IPresenceService>(presenceService, args); } if (avatarService != string.Empty) { m_AvatarService = ServerUtils.LoadPlugin <IAvatarService>(avatarService, args); } if (friendsService != string.Empty) { m_FriendsService = ServerUtils.LoadPlugin <IFriendsService>(friendsService, args); } if (simulationService != string.Empty) { m_RemoteSimulationService = ServerUtils.LoadPlugin <ISimulationService>(simulationService, args); } if (agentService != string.Empty) { m_UserAgentService = ServerUtils.LoadPlugin <IUserAgentService>(agentService, args); } // Get the Hypergrid inventory service (exists only if Hypergrid is enabled) string hgInvServicePlugin = m_LoginServerConfig.GetString("HGInventoryServicePlugin", String.Empty); if (hgInvServicePlugin != string.Empty) { string hgInvServiceArg = m_LoginServerConfig.GetString("HGInventoryServiceConstructorArg", String.Empty); Object[] args2 = new Object[] { config, hgInvServiceArg }; m_HGInventoryService = ServerUtils.LoadPlugin <IInventoryService>(hgInvServicePlugin, args2); } // // deal with the services given as argument // m_LocalSimulationService = simService; if (libraryService != null) { m_log.DebugFormat("[LLOGIN SERVICE]: Using LibraryService given as argument"); m_LibraryService = libraryService; } else if (libService != string.Empty) { m_log.DebugFormat("[LLOGIN SERVICE]: Using instantiated LibraryService"); m_LibraryService = ServerUtils.LoadPlugin <ILibraryService>(libService, args); } m_GatekeeperConnector = new GatekeeperServiceConnector(); if (!Initialized) { Initialized = true; RegisterCommands(); } m_log.DebugFormat("[LLOGIN SERVICE]: Starting..."); }
public void IncomingCapsRequest(UUID agentID, GridRegion region, ISimulationBase simbase, ref OSDMap capURLs) { m_syncMessage = simbase.ApplicationRegistry.RequestModuleInterface<ISyncMessagePosterService>(); m_inventoryService = simbase.ApplicationRegistry.RequestModuleInterface<IInventoryService>(); m_avatarService = simbase.ApplicationRegistry.RequestModuleInterface<IAvatarService>(); m_assetService = simbase.ApplicationRegistry.RequestModuleInterface<IAssetService>(); m_region = region; m_agentID = agentID; m_uri = "/CAPS/UpdateAvatarAppearance/" + UUID.Random() + "/"; MainServer.Instance.AddStreamHandler(new GenericStreamHandler("POST", m_uri, UpdateAvatarAppearance)); capURLs["UpdateAvatarAppearance"] = MainServer.Instance.ServerURI + m_uri; }
// IConfig m_ClientsConfig; public LLLoginService(IConfigSource config, ISimulationService simService, ILibraryService libraryService) { m_LoginServerConfig = config.Configs["LoginService"]; if (m_LoginServerConfig == null) throw new Exception(String.Format("No section LoginService in config file")); string accountService = m_LoginServerConfig.GetString("UserAccountService", String.Empty); string gridUserService = m_LoginServerConfig.GetString("GridUserService", String.Empty); string agentService = m_LoginServerConfig.GetString("UserAgentService", String.Empty); string authService = m_LoginServerConfig.GetString("AuthenticationService", String.Empty); string invService = m_LoginServerConfig.GetString("InventoryService", String.Empty); string gridService = m_LoginServerConfig.GetString("GridService", String.Empty); string presenceService = m_LoginServerConfig.GetString("PresenceService", String.Empty); string libService = m_LoginServerConfig.GetString("LibraryService", String.Empty); string friendsService = m_LoginServerConfig.GetString("FriendsService", String.Empty); string avatarService = m_LoginServerConfig.GetString("AvatarService", String.Empty); string simulationService = m_LoginServerConfig.GetString("SimulationService", String.Empty); m_DefaultRegionName = m_LoginServerConfig.GetString("DefaultRegion", String.Empty); m_WelcomeMessage = m_LoginServerConfig.GetString("WelcomeMessage", "Welcome to OpenSim!"); m_RequireInventory = m_LoginServerConfig.GetBoolean("RequireInventory", true); m_AllowRemoteSetLoginLevel = m_LoginServerConfig.GetBoolean("AllowRemoteSetLoginLevel", false); m_MinLoginLevel = m_LoginServerConfig.GetInt("MinLoginLevel", 0); m_GatekeeperURL = Util.GetConfigVarFromSections<string>(config, "GatekeeperURI", new string[] { "Startup", "Hypergrid", "LoginService" }, String.Empty); m_MapTileURL = m_LoginServerConfig.GetString("MapTileURL", string.Empty); m_ProfileURL = m_LoginServerConfig.GetString("ProfileServerURL", string.Empty); m_OpenIDURL = m_LoginServerConfig.GetString("OpenIDServerURL", String.Empty); m_SearchURL = m_LoginServerConfig.GetString("SearchURL", string.Empty); m_Currency = m_LoginServerConfig.GetString("Currency", string.Empty); m_ClassifiedFee = m_LoginServerConfig.GetString("ClassifiedFee", string.Empty); m_DestinationGuide = m_LoginServerConfig.GetString ("DestinationGuide", string.Empty); m_AvatarPicker = m_LoginServerConfig.GetString ("AvatarPicker", string.Empty); m_AllowedClients = m_LoginServerConfig.GetString("AllowedClients", string.Empty); m_DeniedClients = m_LoginServerConfig.GetString("DeniedClients", string.Empty); m_DSTZone = m_LoginServerConfig.GetString("DSTZone", "America/Los_Angeles;Pacific Standard Time"); // Clean up some of these vars if (m_MapTileURL != String.Empty) { m_MapTileURL = m_MapTileURL.Trim(); if (!m_MapTileURL.EndsWith("/")) m_MapTileURL = m_MapTileURL + "/"; } // These are required; the others aren't if (accountService == string.Empty || authService == string.Empty) throw new Exception("LoginService is missing service specifications"); // replace newlines in welcome message m_WelcomeMessage = m_WelcomeMessage.Replace("\\n", "\n"); Object[] args = new Object[] { config }; m_UserAccountService = ServerUtils.LoadPlugin<IUserAccountService>(accountService, args); m_GridUserService = ServerUtils.LoadPlugin<IGridUserService>(gridUserService, args); m_AuthenticationService = ServerUtils.LoadPlugin<IAuthenticationService>(authService, args); m_InventoryService = ServerUtils.LoadPlugin<IInventoryService>(invService, args); if (gridService != string.Empty) m_GridService = ServerUtils.LoadPlugin<IGridService>(gridService, args); if (presenceService != string.Empty) m_PresenceService = ServerUtils.LoadPlugin<IPresenceService>(presenceService, args); if (avatarService != string.Empty) m_AvatarService = ServerUtils.LoadPlugin<IAvatarService>(avatarService, args); if (friendsService != string.Empty) m_FriendsService = ServerUtils.LoadPlugin<IFriendsService>(friendsService, args); if (simulationService != string.Empty) m_RemoteSimulationService = ServerUtils.LoadPlugin<ISimulationService>(simulationService, args); if (agentService != string.Empty) m_UserAgentService = ServerUtils.LoadPlugin<IUserAgentService>(agentService, args); // Get the Hypergrid inventory service (exists only if Hypergrid is enabled) string hgInvServicePlugin = m_LoginServerConfig.GetString("HGInventoryServicePlugin", String.Empty); if (hgInvServicePlugin != string.Empty) { string hgInvServiceArg = m_LoginServerConfig.GetString("HGInventoryServiceConstructorArg", String.Empty); Object[] args2 = new Object[] { config, hgInvServiceArg }; m_HGInventoryService = ServerUtils.LoadPlugin<IInventoryService>(hgInvServicePlugin, args2); } // // deal with the services given as argument // m_LocalSimulationService = simService; if (libraryService != null) { m_log.DebugFormat("[LLOGIN SERVICE]: Using LibraryService given as argument"); m_LibraryService = libraryService; } else if (libService != string.Empty) { m_log.DebugFormat("[LLOGIN SERVICE]: Using instantiated LibraryService"); m_LibraryService = ServerUtils.LoadPlugin<ILibraryService>(libService, args); } m_GatekeeperConnector = new GatekeeperServiceConnector(); if (!Initialized) { Initialized = true; RegisterCommands(); } m_log.DebugFormat("[LLOGIN SERVICE]: Starting..."); }
public UserController(IUserService userService, IAvatarService avatarService, IRoleService roleService) { this.userService = userService; this.avatarService = avatarService; this.roleService = roleService; }