//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:2.0.50727.1433 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace NJDOTNET.Trivia.ServiceClient.TriviaService { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="TriviaService.IGameServer", CallbackContract=typeof(NJDOTNET.Trivia.ServiceClient.TriviaService.IGameServerCallback), SessionMode=System.ServiceModel.SessionMode.Required)] internal interface IGameServer { [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://tempuri.org/IGameServer/NewGame")] void NewGame(); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://tempuri.org/IGameServer/Start")] void Start(); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://tempuri.org/IGameServer/RegisterPlayer")] void RegisterPlayer(NJDOTNET.Trivia.Player player); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] internal interface IGameServerCallback { [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://tempuri.org/IGameServer/HandleGameStart")] void HandleGameStart(NJDOTNET.Trivia.Game game); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://tempuri.org/IGameServer/HandleGameEnd")] void HandleGameEnd(NJDOTNET.Trivia.GameSummary summary); [System.ServiceModel.OperationContractAttribute(IsOneWay=true, Action="http://tempuri.org/IGameServer/HandleQuestionChanged")] void HandleQuestionChanged(NJDOTNET.Trivia.Question question); } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] internal interface IGameServerChannel : NJDOTNET.Trivia.ServiceClient.TriviaService.IGameServer, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] internal partial class GameServerClient : System.ServiceModel.DuplexClientBase, NJDOTNET.Trivia.ServiceClient.TriviaService.IGameServer { public GameServerClient(System.ServiceModel.InstanceContext callbackInstance) : base(callbackInstance) { } public GameServerClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName) : base(callbackInstance, endpointConfigurationName) { } public GameServerClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress) : base(callbackInstance, endpointConfigurationName, remoteAddress) { } public GameServerClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(callbackInstance, endpointConfigurationName, remoteAddress) { } public GameServerClient(System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(callbackInstance, binding, remoteAddress) { } public void NewGame() { base.Channel.NewGame(); } public void Start() { base.Channel.Start(); } public void RegisterPlayer(NJDOTNET.Trivia.Player player) { base.Channel.RegisterPlayer(player); } } }