public void Start(IScene scene) { m_scene = scene; m_httpServer = m_scene.Simian.GetAppModule <IHttpServer>(); if (m_httpServer == null) { m_log.Warn("NewFileAgentInventory requires an IHttpServer"); return; } m_assetClient = m_scene.Simian.GetAppModule <IAssetClient>(); if (m_assetClient == null) { m_log.Warn("NewFileAgentInventory requires an IAssetClient"); return; } m_inventoryClient = m_scene.Simian.GetAppModule <IInventoryClient>(); if (m_inventoryClient == null) { m_log.Warn("NewFileAgentInventory requires an IInventoryClient"); } m_permissions = m_scene.GetSceneModule <LLPermissions>(); //m_scene.Capabilities.AddProtectedResource(m_scene.ID, "NewFileAgentInventory", NewFileAgentInventoryHandler); m_scene.Capabilities.AddProtectedResource(m_scene.ID, "NewFileAgentInventoryVariablePrice", NewFileAgentInventoryVariablePriceHandler); }
public void Start(IScene scene) { m_scene = scene; m_httpServer = m_scene.Simian.GetAppModule<IHttpServer>(); if (m_httpServer == null) { m_log.Warn("NewFileAgentInventory requires an IHttpServer"); return; } m_assetClient = m_scene.Simian.GetAppModule<IAssetClient>(); if (m_assetClient == null) { m_log.Warn("NewFileAgentInventory requires an IAssetClient"); return; } m_inventoryClient = m_scene.Simian.GetAppModule<IInventoryClient>(); if (m_inventoryClient == null) { m_log.Warn("NewFileAgentInventory requires an IInventoryClient"); } m_permissions = m_scene.GetSceneModule<LLPermissions>(); //m_scene.Capabilities.AddProtectedResource(m_scene.ID, "NewFileAgentInventory", NewFileAgentInventoryHandler); m_scene.Capabilities.AddProtectedResource(m_scene.ID, "NewFileAgentInventoryVariablePrice", NewFileAgentInventoryVariablePriceHandler); }
public CreateSaleCommand( IDateService dateService, IDatabaseContext database, ISaleFactory factory, IInventoryClient client) { _dateService = dateService; _database = database; _factory = factory; _client = client; }
public void Start(IScene scene) { m_scene = scene; m_parcels = m_scene.GetSceneModule <IParcels>(); m_userClient = m_scene.Simian.GetAppModule <IUserClient>(); m_inventoryClient = m_scene.Simian.GetAppModule <IInventoryClient>(); m_groupsClient = m_scene.Simian.GetAppModule <IGroupsClient>(); m_estateClient = m_scene.Simian.GetAppModule <IEstateClient>(); }
public CreateSaleCommand( IDateService dateService, IDatabaseContext database, ISaleFactory factory, IInventoryClient client) { _dateService = dateService; _database = database; _factory = factory; _client = client; }
public WeorderOrderingClient(HttpClient httpClient, string accessToken = null, ILoggerFactory loggerFactory = null, TargetEnvironment environment = TargetEnvironment.STAGING) : base(httpClient, accessToken, loggerFactory) { SetBaseUri(environment == TargetEnvironment.PRODUCTION ? OrderingUrls.PRODUCTION : environment == TargetEnvironment.STAGING ? OrderingUrls.STAGING : OrderingUrls.QA); _integrationsClient = new IntegrationsClient(this); _ordersClient = new OrdersClient(this); _inventoryClient = new InventoryClient(this); _tableSessionsClient = new TableSessionsClient(this); }
static async Task DecrementInventory(Guid pumpkinId, IInventoryClient client) { var currentInventory = await client.IncrementInventoryAsync(pumpkinId, 1000, 0); LogOperation(currentInventory); var tasks = Enumerable.Range(1, 10) .Select(async x => { var sw = new Stopwatch(); sw.Start(); var inv = await client.DecrementInventoryAsync(pumpkinId, x, x); sw.Stop(); System.Console.WriteLine($"*************** Index: {x}. Inventory Count: {inv.Count}. Duration: {sw.Elapsed} **************"); }); await Task.WhenAll(tasks); }
public void Start(IScene scene) { m_scene = scene; m_inventory = m_scene.Simian.GetAppModule<IInventoryClient>(); m_scriptEngine = m_scene.GetSceneModule<ILSLScriptEngine>(); m_udp = m_scene.GetSceneModule<LLUDP>(); if (m_udp != null) { m_udp.AddPacketHandler(PacketType.RequestTaskInventory, RequestTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.UpdateTaskInventory, UpdateTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.RezScript, RezScriptHandler); m_udp.AddPacketHandler(PacketType.RemoveTaskInventory, RemoveTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.MoveTaskInventory, MoveTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.GetScriptRunning, GetScriptRunningHandler); } }
public void Start(IScene scene) { m_scene = scene; m_inventory = m_scene.Simian.GetAppModule <IInventoryClient>(); m_scriptEngine = m_scene.GetSceneModule <ILSLScriptEngine>(); m_udp = m_scene.GetSceneModule <LLUDP>(); if (m_udp != null) { m_udp.AddPacketHandler(PacketType.RequestTaskInventory, RequestTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.UpdateTaskInventory, UpdateTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.RezScript, RezScriptHandler); m_udp.AddPacketHandler(PacketType.RemoveTaskInventory, RemoveTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.MoveTaskInventory, MoveTaskInventoryHandler); m_udp.AddPacketHandler(PacketType.GetScriptRunning, GetScriptRunningHandler); } }
public void Start(IScene scene) { m_scene = scene; m_userClient = m_scene.Simian.GetAppModule<IUserClient>(); m_inventoryClient = m_scene.Simian.GetAppModule<IInventoryClient>(); m_udp = m_scene.GetSceneModule<LLUDP>(); if (m_udp != null) { m_udp.AddPacketHandler(PacketType.AgentSetAppearance, AgentSetAppearanceHandler); m_udp.AddPacketHandler(PacketType.AgentWearablesRequest, AgentWearablesRequestHandler); m_udp.AddPacketHandler(PacketType.AgentIsNowWearing, AgentIsNowWearingHandler); m_udp.AddPacketHandler(PacketType.AgentCachedTexture, AgentCachedTextureHandler); m_scene.AddInterestListHandler(AVATAR_APPEARANCE, new InterestListEventHandler { PriorityCallback = AvatarAppearancePrioritizer, SendCallback = SendAvatarAppearancePackets }); m_scene.OnPresenceAdd += PresenceAddHandler; } }
public void Start(IScene scene) { m_scene = scene; m_userClient = m_scene.Simian.GetAppModule <IUserClient>(); m_inventoryClient = m_scene.Simian.GetAppModule <IInventoryClient>(); m_udp = m_scene.GetSceneModule <LLUDP>(); if (m_udp != null) { m_udp.AddPacketHandler(PacketType.AgentSetAppearance, AgentSetAppearanceHandler); m_udp.AddPacketHandler(PacketType.AgentWearablesRequest, AgentWearablesRequestHandler); m_udp.AddPacketHandler(PacketType.AgentIsNowWearing, AgentIsNowWearingHandler); m_udp.AddPacketHandler(PacketType.AgentCachedTexture, AgentCachedTextureHandler); m_scene.AddInterestListHandler(AVATAR_APPEARANCE, new InterestListEventHandler { PriorityCallback = AvatarAppearancePrioritizer, SendCallback = SendAvatarAppearancePackets }); m_scene.OnPresenceAdd += PresenceAddHandler; } }
public bool Start(Simian simian) { m_simian = simian; #region Get Module References m_httpServer = simian.GetAppModule <IHttpServer>(); if (m_httpServer == null) { m_log.Error("Can't create the LindenLogin service without an HTTP server"); return(false); } m_userClient = simian.GetAppModule <IUserClient>(); if (m_userClient == null) { m_log.Error("Can't create the LindenLogin service without a user client"); return(false); } m_gridClient = simian.GetAppModule <IGridClient>(); if (m_gridClient == null) { m_log.Error("Can't create the LindenLogin service without a grid client"); return(false); } m_inventoryClient = simian.GetAppModule <IInventoryClient>(); #endregion Get Module References m_httpServer.AddXmlRpcHandler("/", true, "login_to_simulator", LoginHandler); m_log.Info("LindenLogin handler initialized"); return(true); }
public ProductsService(IInventoryClient client) { _client = client; }
public bool Start(Simian simian) { m_simian = simian; #region Get Module References m_httpServer = simian.GetAppModule<IHttpServer>(); if (m_httpServer == null) { m_log.Error("Can't create the LindenLogin service without an HTTP server"); return false; } m_userClient = simian.GetAppModule<IUserClient>(); if (m_userClient == null) { m_log.Error("Can't create the LindenLogin service without a user client"); return false; } m_gridClient = simian.GetAppModule<IGridClient>(); if (m_gridClient == null) { m_log.Error("Can't create the LindenLogin service without a grid client"); return false; } m_inventoryClient = simian.GetAppModule<IInventoryClient>(); #endregion Get Module References m_httpServer.AddXmlRpcHandler("/", true, "login_to_simulator", LoginHandler); m_log.Info("LindenLogin handler initialized"); return true; }
public ProductsController(IProductRepository productRepository, IInventoryClient inventoryClient) { this.productRepository = productRepository; this.inventoryClient = inventoryClient; }
public void Start(IScene scene) { m_scene = scene; m_scheduler = m_scene.Simian.GetAppModule<IScheduler>(); if (m_scheduler == null) { m_log.Error("Inventory requires an IScheduler"); return; } m_inventoryClient = m_scene.Simian.GetAppModule<IInventoryClient>(); if (m_inventoryClient == null) { m_log.Error("Inventory requires an IInventoryClient"); return; } m_assetClient = m_scene.Simian.GetAppModule<IAssetClient>(); if (m_assetClient == null) { m_log.Error("Inventory requires an IAssetClient"); return; } m_primMesher = m_scene.GetSceneModule<IPrimMesher>(); if (m_primMesher == null) { m_log.Error("Inventory requires an IPrimMesher"); return; } m_physics = m_scene.GetSceneModule<IPhysicsEngine>(); m_permissions = m_scene.GetSceneModule<LLPermissions>(); m_udp = m_scene.GetSceneModule<LLUDP>(); if (m_udp != null) { m_udp.AddPacketHandler(PacketType.CreateInventoryItem, CreateInventoryItemHandler); m_udp.AddPacketHandler(PacketType.CreateInventoryFolder, CreateInventoryFolderHandler); m_udp.AddPacketHandler(PacketType.UpdateInventoryItem, UpdateInventoryItemHandler); m_udp.AddPacketHandler(PacketType.UpdateInventoryFolder, UpdateInventoryFolderHandler); m_udp.AddPacketHandler(PacketType.FetchInventoryDescendents, FetchInventoryDescendentsHandler); m_udp.AddPacketHandler(PacketType.FetchInventory, FetchInventoryHandler); m_udp.AddPacketHandler(PacketType.CopyInventoryItem, CopyInventoryItemHandler); m_udp.AddPacketHandler(PacketType.MoveInventoryItem, MoveInventoryItemHandler); m_udp.AddPacketHandler(PacketType.MoveInventoryFolder, MoveInventoryFolderHandler); m_udp.AddPacketHandler(PacketType.RemoveInventoryItem, RemoveInventoryItemHandler); m_udp.AddPacketHandler(PacketType.RemoveInventoryFolder, RemoveInventoryFolderHandler); m_udp.AddPacketHandler(PacketType.PurgeInventoryDescendents, PurgeInventoryDescendentsHandler); m_udp.AddPacketHandler(PacketType.DeRezObject, DeRezObjectHandler); m_udp.AddPacketHandler(PacketType.RezObject, RezObjectHandler); m_udp.AddPacketHandler(PacketType.LinkInventoryItem, LinkInventoryItemHandler); } }
public ProductController(IInventoryClient client) { _client = client; }
public void Start(IScene scene) { m_scene = scene; m_parcels = m_scene.GetSceneModule<IParcels>(); m_userClient = m_scene.Simian.GetAppModule<IUserClient>(); m_inventoryClient = m_scene.Simian.GetAppModule<IInventoryClient>(); m_groupsClient = m_scene.Simian.GetAppModule<IGroupsClient>(); m_estateClient = m_scene.Simian.GetAppModule<IEstateClient>(); }