Exemple #1
0
 public RavenClient(ILogger logger, IModuleManager moduleManager, INetworkPacketController controller)
 {
     this.logger         = logger;
     this.Modules        = moduleManager;
     this.Auth           = this.Modules.AddModule(new Authentication(this));
     this.packetHandlers = RegisterPacketHandlers(controller);
 }
Exemple #2
0
 public void SetAuthModule <T>(Func <IRavenClient, T> factory)
     where T : Modules.IAuthenticationModule
 {
     this.Modules.RemoveModule(this.Auth);
     this.Auth = this.Modules.AddModule(factory(this));
 }