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); }
public void SetAuthModule <T>(Func <IRavenClient, T> factory) where T : Modules.IAuthenticationModule { this.Modules.RemoveModule(this.Auth); this.Auth = this.Modules.AddModule(factory(this)); }