introducing cgweb nikola dimitroff [email protected] creating genres creatinggenres.com
TRANSCRIPT
![Page 1: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/1.jpg)
Introducing CGWeb
Nikola Dimitroff
Creating Genres
creatinggenres.com
![Page 2: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/2.jpg)
Table of Contents1. CGWeb to the rescue
Installing and configuring CGWeb Few helpful tips
2. Creating Tic-Tac-Toe with CGWeb
![Page 3: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/3.jpg)
CGWeb
![Page 4: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/4.jpg)
CGWeb
Provides abstractions to work with users, chat and game rooms for easing creating games with SignalR
Is going to be rapidly developed and since we are a small team full of noobishness, we are accepting every proposal to the library
![Page 5: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/5.jpg)
CGWeb (2)
Installing and configuring CGWeb– a How-To Go to creatinggenres.com and download the
library package. Add a reference in your project to the library Add the following to your web.config in the
system.webServer tag:<modules runAllManagedModulesForAllRequests=“true”>
<add name="CGWebModule“ type="CGWeb.Services.CGWebModule, CGWeb" /></modules>
![Page 6: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/6.jpg)
CGWeb (3)
Installing and configuring CGWeb– a How-To Remember to enable RAMMFAR. Aaand your done .
![Page 7: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/7.jpg)
CGWeb (4)
Use cookies/query string/forms to authenticate your user (note: the query string/forms data must have a “user” or “username” key).
If you are rolling a different authentication approach – implement CGWeb.Services.IAuthenticator and register your authenticator trough the CGWeb.Services.ServiceManager
![Page 8: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/8.jpg)
CGWeb (5)
If you demand more than simply guest users, inherit from CGWeb.User and implement your own type.
To create a game, you must do the following: Inherit your game from CGWeb.Games.Game Inherit the hub for the game from
CGWeb.Hubs.GameHub Register your game trough the ServiceManager
![Page 9: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/9.jpg)
CGWeb (6) Use the GameHub.GetConnectedClients
method to communicate with the players in the current game.
Note: The client will receive notifications in the games hub, not in your hub
![Page 10: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/10.jpg)
CGWeb – live demo
![Page 11: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/11.jpg)
CGWeb (7)
That`s all for now folks, remember to keep tracking creatinggenres.com for updates.
You`ll also find documentation (or at least something we pretend to be comprehensive and understandable)
Come join us at jabbr.net. Type /connect CGWeb to join our secret room and ask us whatever you feel like asking.
Contact us at [email protected] / [email protected] at any time for additional information, advice or proposal
![Page 12: Introducing CGWeb Nikola Dimitroff nikola_dimitroff@abv.bg Creating Genres creatinggenres.com](https://reader035.vdocuments.mx/reader035/viewer/2022081515/56649d0b5503460f949dee76/html5/thumbnails/12.jpg)
Questions?