//------------------------------------------------------------------------------ // // This code was generated by a tool. // Runtime Version:4.0.30319.235 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. // //------------------------------------------------------------------------------ namespace Launcher.PatcherService { [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ServiceModel.ServiceContractAttribute(ConfigurationName="PatcherService.IPatcherService")] public interface IPatcherService { [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPatcherService/GetNewestVersion", ReplyAction="http://tempuri.org/IPatcherService/GetNewestVersionResponse")] long GetNewestVersion(); // CODEGEN: Generating message contract since the wrapper name (PatchFileRequest) of message PatchFileRequest does not match the default value (GetTorrentForVersion) [System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IPatcherService/GetTorrentForVersion", ReplyAction="http://tempuri.org/IPatcherService/GetTorrentForVersionResponse")] Launcher.PatcherService.FileTranmission GetTorrentForVersion(Launcher.PatcherService.PatchFileRequest request); } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="PatchFileRequest", WrapperNamespace="http://tempuri.org/", IsWrapped=true)] public partial class PatchFileRequest { [System.ServiceModel.MessageHeaderAttribute(Namespace="http://tempuri.org/")] public long Version; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)] public string Config; public PatchFileRequest() { } public PatchFileRequest(long Version, string Config) { this.Version = Version; this.Config = Config; } } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] [System.ServiceModel.MessageContractAttribute(WrapperName="FileTranmission", WrapperNamespace="http://tempuri.org/", IsWrapped=true)] public partial class FileTranmission { [System.ServiceModel.MessageHeaderAttribute(Namespace="http://tempuri.org/")] public string Config; [System.ServiceModel.MessageHeaderAttribute(Namespace="http://tempuri.org/")] public long Length; [System.ServiceModel.MessageHeaderAttribute(Namespace="http://tempuri.org/")] public long Version; [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://tempuri.org/", Order=0)] public System.IO.Stream ByteStream; public FileTranmission() { } public FileTranmission(string Config, long Length, long Version, System.IO.Stream ByteStream) { this.Config = Config; this.Length = Length; this.Version = Version; this.ByteStream = ByteStream; } } [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public interface IPatcherServiceChannel : Launcher.PatcherService.IPatcherService, System.ServiceModel.IClientChannel { } [System.Diagnostics.DebuggerStepThroughAttribute()] [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")] public partial class PatcherServiceClient : System.ServiceModel.ClientBase, Launcher.PatcherService.IPatcherService { public PatcherServiceClient() { } public PatcherServiceClient(string endpointConfigurationName) : base(endpointConfigurationName) { } public PatcherServiceClient(string endpointConfigurationName, string remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public PatcherServiceClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : base(endpointConfigurationName, remoteAddress) { } public PatcherServiceClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : base(binding, remoteAddress) { } public long GetNewestVersion() { return base.Channel.GetNewestVersion(); } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] Launcher.PatcherService.FileTranmission Launcher.PatcherService.IPatcherService.GetTorrentForVersion(Launcher.PatcherService.PatchFileRequest request) { return base.Channel.GetTorrentForVersion(request); } public long GetTorrentForVersion(ref long Version, ref string Config, out System.IO.Stream ByteStream) { Launcher.PatcherService.PatchFileRequest inValue = new Launcher.PatcherService.PatchFileRequest(); inValue.Version = Version; inValue.Config = Config; Launcher.PatcherService.FileTranmission retVal = ((Launcher.PatcherService.IPatcherService)(this)).GetTorrentForVersion(inValue); Config = retVal.Config; Version = retVal.Version; ByteStream = retVal.ByteStream; return retVal.Length; } } }