Example #1
0
    public void registerProductType()
    {
        if (proxy == null)
        {
            proxy = GigaSpacesFactory.FindSpace("/./xapTutorialSpace");

            service      = new CRUDService(proxy);
            spaceUtility = new SpaceUtility(proxy);
            userUtil     = new UserUtil(proxy);
        }
    }
Example #2
0
    public void registerProductType()
    {
        if (proxy == null)
        {
            proxy = GigaSpacesFactory.FindSpace("/./xapTutorialSpace");

          //      service = new CRUDService(proxy);
            spaceUtility = new SpaceUtility(proxy);
           //     userUtil = new UserUtil(proxy);
        }

        //	service.registerProductType();
    }
Example #3
0
        private void OnDayStarted(object sender, GameLaunchedEventArgs e)
        {
            if (!Game1.IsMasterGame)
            {
                return;
            }

            int foundCamera = 0;

            SpaceUtility.iterateAllItems((item) => { if (item is CameraTool)
                                                     {
                                                         ++foundCamera;
                                                     }
                                                     return(item); });

            for (int i = foundCamera; i < Game1.getAllFarmers().Count((f) => f.eventsSeen.Contains(14)); ++i)
            {
                Game1.player.team.returnedDonationsMutex.RequestLock(() => Game1.player.team.returnedDonations.Add(new CameraTool()));
            }
        }
Example #4
0
    public void registerProductType()
    {
        if (proxy == null)
        {
            // Instatiate the embedded space
            proxy = GigaSpacesFactory.FindSpace("/./xapTutorialSpace");;

            spaceUtility = new SpaceUtility(proxy);
            userUtil     = new UserUtil(proxy);
            queryService = new QueryService(proxy);
            service      = new CRUDService(proxy);

            // Register the Space Document
        }

        // Create a user
        userUtil.loadUsers();

        service.registerProductType();
        service.createDocumemt();
    }
Example #5
0
    public void registerProductType()
    {
        if ( proxy == null)
        {
            // Instatiate the embedded space
            proxy =   GigaSpacesFactory.FindSpace("/./xapTutorialSpace");;

            spaceUtility = new SpaceUtility (proxy);
            userUtil = new UserUtil(proxy);
            queryService = new QueryService(proxy);
            service = new CRUDService(proxy);

            // Register the Space Document

        }

        // Create a user
        userUtil.loadUsers();

        service.registerProductType();
        service.createDocumemt();
    }