Universe.Services.PerClientBasedCapsService.Initialize C# (CSharp) Метод

Initialize() публичный Метод

public Initialize ( ICapsService server, UUID agentID ) : void
server ICapsService
agentID UUID
Результат void
        public void Initialize (ICapsService server, UUID agentID)
        {
            m_CapsService = server;
            m_agentID = agentID;
            m_account = Registry.RequestModuleInterface<IUserAccountService> ().GetUserAccount (null, agentID);
        }

Usage Example

Пример #1
0
 /// <summary>
 ///     Get or create a new Caps Service for the given client
 ///     Note: This does not add them to a region if one is created.
 /// </summary>
 /// <param name="agentID"></param>
 /// <returns></returns>
 public IClientCapsService GetOrCreateClientCapsService(UUID agentID)
 {
     if (!m_ClientCapsServices.ContainsKey(agentID))
     {
         var client = new PerClientBasedCapsService();
         client.Initialize(this, agentID);
         m_ClientCapsServices.Add(agentID, client);
     }
     return(m_ClientCapsServices [agentID]);
 }
All Usage Examples Of Universe.Services.PerClientBasedCapsService::Initialize