Exemplo n.º 1
0
 /// <summary>
 /// This allows a request to be added to be processed once we receive a user's inventory
 /// from the inventory service.  If we already have the inventory, the request
 /// is executed immediately instead.
 /// </summary>
 /// <param name="parent"></param>
 protected void AddRequest(IInventoryRequest request)
 {
     lock (m_pendingRequests)
     {
         if (HasReceivedInventory)
         {
             request.Execute();
         }
         else
         {
             m_pendingRequests.Add(request);
         }
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// This allows a request to be added to be processed once we receive a user's inventory
 /// from the inventory service.  If we already have the inventory, the request
 /// is executed immediately instead.
 /// </summary>
 /// <param name="parent"></param>
 protected void AddRequest(IInventoryRequest request)
 {
     lock (m_pendingRequests)
     {
         if (HasReceivedInventory)
         {
             request.Execute();
         }
         else
         {
             m_pendingRequests.Add(request);
         }
     }
 }