Changeset 953 for trunk/sources/HeuristicLab.Hive.Client.Console
- Timestamp:
- 12/10/08 15:40:42 (16 years ago)
- Location:
- trunk/sources/HeuristicLab.Hive.Client.Console
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/sources/HeuristicLab.Hive.Client.Console/HeuristicLab.Hive.Client.Console.csproj
r933 r953 142 142 <DesignTimeSharedInput>True</DesignTimeSharedInput> 143 143 </Compile> 144 <Compile Include="Service References\Client WCFService\Reference.cs">144 <Compile Include="Service References\ClientService\Reference.cs"> 145 145 <AutoGen>True</AutoGen> 146 146 <DesignTime>True</DesignTime> … … 158 158 </ItemGroup> 159 159 <ItemGroup> 160 <None Include="Resources\Info.png" /> 161 <None Include="Service References\ClientService\HeuristicLab.Hive.Client.Common.xsd" /> 162 <None Include="Service References\ClientService\HeuristicLab.Hive.Client.Core.ClientConsoleService.xsd" /> 163 <None Include="Service References\ClientService\service.wsdl" /> 164 <None Include="Service References\ClientService\service.xsd" /> 165 <None Include="Service References\ClientService\service1.xsd" /> 166 </ItemGroup> 167 <ItemGroup> 168 <WCFMetadata Include="Service References\" /> 169 </ItemGroup> 170 <ItemGroup> 171 <WCFMetadataStorage Include="Service References\ClientService\" /> 172 </ItemGroup> 173 <ItemGroup> 174 <None Include="Service References\ClientService\configuration91.svcinfo" /> 175 </ItemGroup> 176 <ItemGroup> 177 <None Include="Service References\ClientService\configuration.svcinfo" /> 178 </ItemGroup> 179 <ItemGroup> 160 180 <None Include="app.config" /> 161 <None Include="Resources\Info.png" /> 162 <None Include="Service References\ClientWCFService\HeuristicLab.Hive.Client.Core.ClientConsoleService.xsd" /> 163 <None Include="Service References\ClientWCFService\service.wsdl" /> 164 <None Include="Service References\ClientWCFService\service.xsd" /> 165 <None Include="Service References\ClientWCFService\service1.xsd" /> 166 </ItemGroup> 167 <ItemGroup> 168 <WCFMetadata Include="Service References\" /> 169 </ItemGroup> 170 <ItemGroup> 171 <WCFMetadataStorage Include="Service References\ClientWCFService\" /> 172 </ItemGroup> 173 <ItemGroup> 174 <None Include="Service References\ClientWCFService\configuration91.svcinfo" /> 175 </ItemGroup> 176 <ItemGroup> 177 <None Include="Service References\ClientWCFService\configuration.svcinfo" /> 178 </ItemGroup> 179 <ItemGroup> 180 <None Include="Service References\ClientWCFService\HeuristicLab.Hive.Client.Console.ClientWCFService.ConnectionContainer.datasource"> 181 <None Include="Service References\ClientService\HeuristicLab.Hive.Client.Console.ClientService.ConnectionContainer.datasource"> 181 182 <DependentUpon>Reference.svcmap</DependentUpon> 182 183 </None> 183 <None Include="Service References\Client WCFService\HeuristicLab.Hive.Client.Console.ClientWCFService.StatusCommons.datasource">184 <None Include="Service References\ClientService\HeuristicLab.Hive.Client.Console.ClientService.StatusCommons.datasource"> 184 185 <DependentUpon>Reference.svcmap</DependentUpon> 185 186 </None> 186 <None Include="Service References\Client WCFService\Reference.svcmap">187 <None Include="Service References\ClientService\Reference.svcmap"> 187 188 <Generator>WCF Proxy Generator</Generator> 188 189 <LastGenOutput>Reference.cs</LastGenOutput> -
trunk/sources/HeuristicLab.Hive.Client.Console/HiveClientConsole.cs
r933 r953 31 31 using System.Threading; 32 32 using ZedGraph; 33 using HeuristicLab.Hive.Client.Console.ClientWCFService; 33 //using HeuristicLab.Hive.Client.Console.ClientWCFService; 34 using System.ServiceModel; 34 35 35 36 namespace HeuristicLab.Hive.Client.Console { … … 46 47 GetEventLog(); 47 48 48 ClientConsoleCommunicatorClient cccc = new ClientConsoleCommunicatorClient(); 49 cccc.GetStatusInfos(); 49 //ClientConsoleCommunicatorClient cccc = new ClientConsoleCommunicatorClient(new NetTcpBinding(), 50 // new EndpointAddress("net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator")); 51 //StatusCommons sc = cccc.GetStatusInfos(); 50 52 } 51 53 … … 87 89 curEventLogEntry.SubItems.Add(ev.TimeGenerated.Date.ToString()); 88 90 curEventLogEntry.SubItems.Add(ev.TimeGenerated.TimeOfDay.ToString()); 89 90 91 91 } 92 92 } -
trunk/sources/HeuristicLab.Hive.Client.Console/Properties/Settings.Designer.cs
r717 r953 10 10 11 11 namespace HeuristicLab.Hive.Client.Console.Properties { 12 13 14 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] 16 internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 18 private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 20 public static Settings Default { 21 get { 22 return defaultInstance; 23 } 12 13 14 [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] 15 [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")] 16 internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { 17 18 private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); 19 20 public static Settings Default { 21 get { 22 return defaultInstance; 23 } 24 } 25 26 [global::System.Configuration.UserScopedSettingAttribute()] 27 [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] 28 [global::System.Configuration.DefaultSettingValueAttribute("10.0.0.1")] 29 public string IpAdress { 30 get { 31 return ((string)(this["IpAdress"])); 32 } 33 set { 34 this["IpAdress"] = value; 35 } 36 } 24 37 } 25 }26 38 } -
trunk/sources/HeuristicLab.Hive.Client.Console/Properties/Settings.settings
r717 r953 1 1 <?xml version='1.0' encoding='utf-8'?> 2 <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)"> 3 <Profiles> 4 <Profile Name="(Default)" /> 5 </Profiles> 6 <Settings /> 2 <SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="HeuristicLab.Hive.Client.Console.Properties" GeneratedClassName="Settings"> 3 <Profiles /> 4 <Settings> 5 <Setting Name="IpAdress" Type="System.String" Scope="User"> 6 <Value Profile="(Default)">10.0.0.1</Value> 7 </Setting> 8 </Settings> 7 9 </SettingsFile> -
trunk/sources/HeuristicLab.Hive.Client.Console/ServerProxy.cs
r911 r953 5 5 6 6 namespace HeuristicLab.Hive.Client.Console { 7 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]8 [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "IClientConsoleCommunicator")]9 public interface IClientConsoleCommunicator {10 11 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")]12 HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons GetStatusInfos();13 14 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")]15 System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState);16 17 HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons EndGetStatusInfos(System.IAsyncResult result);18 19 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")]20 HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer GetConnection();21 22 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")]23 System.IAsyncResult BeginGetConnection(System.AsyncCallback callback, object asyncState);24 25 HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer EndGetConnection(System.IAsyncResult result);26 27 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")]28 void SetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container);29 30 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")]31 System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container, System.AsyncCallback callback, object asyncState);32 33 void EndSetConnection(System.IAsyncResult result);34 }35 36 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")]37 public interface IClientConsoleCommunicatorChannel : IClientConsoleCommunicator, System.ServiceModel.IClientChannel {38 }39 40 7 [System.Diagnostics.DebuggerStepThroughAttribute()] 41 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 42 public partial class GetStatusInfosCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 43 44 private object[] results; 45 46 public GetStatusInfosCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 47 base(exception, cancelled, userState) { 48 this.results = results; 49 } 50 51 public HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons Result { 52 get { 53 base.RaiseExceptionIfNecessary(); 54 return ((HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons)(this.results[0])); 8 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] 9 [System.Runtime.Serialization.DataContractAttribute(Name = "StatusCommons", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConso" + 10 "leService")] 11 public partial class StatusCommons : object, System.Runtime.Serialization.IExtensibleDataObject { 12 13 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 14 15 private System.Guid ClientGuidk__BackingFieldField; 16 17 private System.DateTime ConnectedSincek__BackingFieldField; 18 19 private int JobsAbortedk__BackingFieldField; 20 21 private int JobsDonek__BackingFieldField; 22 23 private int JobsFetchedk__BackingFieldField; 24 25 private HeuristicLab.Hive.Client.Core.ClientConsoleService.JobStatus[] Jobsk__BackingFieldField; 26 27 private HeuristicLab.Hive.Client.Common.NetworkEnumWcfConnState Statusk__BackingFieldField; 28 29 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 30 get { 31 return this.extensionDataField; 32 } 33 set { 34 this.extensionDataField = value; 35 } 36 } 37 38 [System.Runtime.Serialization.DataMemberAttribute(Name = "<ClientGuid>k__BackingField", IsRequired = true)] 39 public System.Guid ClientGuidk__BackingField { 40 get { 41 return this.ClientGuidk__BackingFieldField; 42 } 43 set { 44 this.ClientGuidk__BackingFieldField = value; 45 } 46 } 47 48 [System.Runtime.Serialization.DataMemberAttribute(Name = "<ConnectedSince>k__BackingField", IsRequired = true)] 49 public System.DateTime ConnectedSincek__BackingField { 50 get { 51 return this.ConnectedSincek__BackingFieldField; 52 } 53 set { 54 this.ConnectedSincek__BackingFieldField = value; 55 } 56 } 57 58 [System.Runtime.Serialization.DataMemberAttribute(Name = "<JobsAborted>k__BackingField", IsRequired = true)] 59 public int JobsAbortedk__BackingField { 60 get { 61 return this.JobsAbortedk__BackingFieldField; 62 } 63 set { 64 this.JobsAbortedk__BackingFieldField = value; 65 } 66 } 67 68 [System.Runtime.Serialization.DataMemberAttribute(Name = "<JobsDone>k__BackingField", IsRequired = true)] 69 public int JobsDonek__BackingField { 70 get { 71 return this.JobsDonek__BackingFieldField; 72 } 73 set { 74 this.JobsDonek__BackingFieldField = value; 75 } 76 } 77 78 [System.Runtime.Serialization.DataMemberAttribute(Name = "<JobsFetched>k__BackingField", IsRequired = true)] 79 public int JobsFetchedk__BackingField { 80 get { 81 return this.JobsFetchedk__BackingFieldField; 82 } 83 set { 84 this.JobsFetchedk__BackingFieldField = value; 85 } 86 } 87 88 [System.Runtime.Serialization.DataMemberAttribute(Name = "<Jobs>k__BackingField", IsRequired = true)] 89 public HeuristicLab.Hive.Client.Core.ClientConsoleService.JobStatus[] Jobsk__BackingField { 90 get { 91 return this.Jobsk__BackingFieldField; 92 } 93 set { 94 this.Jobsk__BackingFieldField = value; 95 } 96 } 97 98 [System.Runtime.Serialization.DataMemberAttribute(Name = "<Status>k__BackingField", IsRequired = true)] 99 public HeuristicLab.Hive.Client.Common.NetworkEnumWcfConnState Statusk__BackingField { 100 get { 101 return this.Statusk__BackingFieldField; 102 } 103 set { 104 this.Statusk__BackingFieldField = value; 55 105 } 56 106 } … … 58 108 59 109 [System.Diagnostics.DebuggerStepThroughAttribute()] 60 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 61 public partial class GetConnectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 62 63 private object[] results; 64 65 public GetConnectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 66 base(exception, cancelled, userState) { 67 this.results = results; 68 } 69 70 public HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer Result { 71 get { 72 base.RaiseExceptionIfNecessary(); 73 return ((HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer)(this.results[0])); 110 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] 111 [System.Runtime.Serialization.DataContractAttribute(Name = "JobStatus", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConso" + 112 "leService")] 113 public partial class JobStatus : object, System.Runtime.Serialization.IExtensibleDataObject { 114 115 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 116 117 private long JobIdk__BackingFieldField; 118 119 private double Progressk__BackingFieldField; 120 121 private System.DateTime Sincek__BackingFieldField; 122 123 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 124 get { 125 return this.extensionDataField; 126 } 127 set { 128 this.extensionDataField = value; 129 } 130 } 131 132 [System.Runtime.Serialization.DataMemberAttribute(Name = "<JobId>k__BackingField", IsRequired = true)] 133 public long JobIdk__BackingField { 134 get { 135 return this.JobIdk__BackingFieldField; 136 } 137 set { 138 this.JobIdk__BackingFieldField = value; 139 } 140 } 141 142 [System.Runtime.Serialization.DataMemberAttribute(Name = "<Progress>k__BackingField", IsRequired = true)] 143 public double Progressk__BackingField { 144 get { 145 return this.Progressk__BackingFieldField; 146 } 147 set { 148 this.Progressk__BackingFieldField = value; 149 } 150 } 151 152 [System.Runtime.Serialization.DataMemberAttribute(Name = "<Since>k__BackingField", IsRequired = true)] 153 public System.DateTime Sincek__BackingField { 154 get { 155 return this.Sincek__BackingFieldField; 156 } 157 set { 158 this.Sincek__BackingFieldField = value; 74 159 } 75 160 } … … 77 162 78 163 [System.Diagnostics.DebuggerStepThroughAttribute()] 79 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 80 public partial class ClientConsoleCommunicatorClient : System.ServiceModel.ClientBase<IClientConsoleCommunicator>, IClientConsoleCommunicator { 81 82 private BeginOperationDelegate onBeginGetStatusInfosDelegate; 83 84 private EndOperationDelegate onEndGetStatusInfosDelegate; 85 86 private System.Threading.SendOrPostCallback onGetStatusInfosCompletedDelegate; 87 88 private BeginOperationDelegate onBeginGetConnectionDelegate; 89 90 private EndOperationDelegate onEndGetConnectionDelegate; 91 92 private System.Threading.SendOrPostCallback onGetConnectionCompletedDelegate; 93 94 private BeginOperationDelegate onBeginSetConnectionDelegate; 95 96 private EndOperationDelegate onEndSetConnectionDelegate; 97 98 private System.Threading.SendOrPostCallback onSetConnectionCompletedDelegate; 99 100 public ClientConsoleCommunicatorClient() { 101 } 102 103 public ClientConsoleCommunicatorClient(string endpointConfigurationName) : 104 base(endpointConfigurationName) { 105 } 106 107 public ClientConsoleCommunicatorClient(string endpointConfigurationName, string remoteAddress) : 108 base(endpointConfigurationName, remoteAddress) { 109 } 110 111 public ClientConsoleCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 112 base(endpointConfigurationName, remoteAddress) { 113 } 114 115 public ClientConsoleCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 116 base(binding, remoteAddress) { 117 } 118 119 public event System.EventHandler<GetStatusInfosCompletedEventArgs> GetStatusInfosCompleted; 120 121 public event System.EventHandler<GetConnectionCompletedEventArgs> GetConnectionCompleted; 122 123 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetConnectionCompleted; 124 125 public HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons GetStatusInfos() { 126 return base.Channel.GetStatusInfos(); 127 } 128 129 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 130 public System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState) { 131 return base.Channel.BeginGetStatusInfos(callback, asyncState); 132 } 133 134 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 135 public HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons EndGetStatusInfos(System.IAsyncResult result) { 136 return base.Channel.EndGetStatusInfos(result); 137 } 138 139 private System.IAsyncResult OnBeginGetStatusInfos(object[] inValues, System.AsyncCallback callback, object asyncState) { 140 return this.BeginGetStatusInfos(callback, asyncState); 141 } 142 143 private object[] OnEndGetStatusInfos(System.IAsyncResult result) { 144 HeuristicLab.Hive.Client.Communication.ClientConsole.StatusCommons retVal = this.EndGetStatusInfos(result); 145 return new object[] { 164 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] 165 [System.Runtime.Serialization.DataContractAttribute(Name = "ConnectionContainer", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Core.ClientConso" + 166 "leService")] 167 public partial class ConnectionContainer : object, System.Runtime.Serialization.IExtensibleDataObject { 168 169 private System.Runtime.Serialization.ExtensionDataObject extensionDataField; 170 171 private string IPAdressk__BackingFieldField; 172 173 private int Portk__BackingFieldField; 174 175 public System.Runtime.Serialization.ExtensionDataObject ExtensionData { 176 get { 177 return this.extensionDataField; 178 } 179 set { 180 this.extensionDataField = value; 181 } 182 } 183 184 [System.Runtime.Serialization.DataMemberAttribute(Name = "<IPAdress>k__BackingField", IsRequired = true)] 185 public string IPAdressk__BackingField { 186 get { 187 return this.IPAdressk__BackingFieldField; 188 } 189 set { 190 this.IPAdressk__BackingFieldField = value; 191 } 192 } 193 194 [System.Runtime.Serialization.DataMemberAttribute(Name = "<Port>k__BackingField", IsRequired = true)] 195 public int Portk__BackingField { 196 get { 197 return this.Portk__BackingFieldField; 198 } 199 set { 200 this.Portk__BackingFieldField = value; 201 } 202 } 203 } 204 } 205 namespace HeuristicLab.Hive.Client.Common { 206 using System.Runtime.Serialization; 207 208 209 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Runtime.Serialization", "3.0.0.0")] 210 [System.Runtime.Serialization.DataContractAttribute(Name = "NetworkEnum.WcfConnState", Namespace = "http://schemas.datacontract.org/2004/07/HeuristicLab.Hive.Client.Common")] 211 public enum NetworkEnumWcfConnState : int { 212 213 [System.Runtime.Serialization.EnumMemberAttribute()] 214 Connected = 0, 215 216 [System.Runtime.Serialization.EnumMemberAttribute()] 217 Disconnected = 1, 218 219 [System.Runtime.Serialization.EnumMemberAttribute()] 220 Failed = 2, 221 } 222 } 223 224 225 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 226 [System.ServiceModel.ServiceContractAttribute(ConfigurationName = "IClientConsoleCommunicator")] 227 public interface IClientConsoleCommunicator { 228 229 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")] 230 HeuristicLab.Hive.Client.Core.ClientConsoleService.StatusCommons GetStatusInfos(); 231 232 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfos", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetStatusInfosResponse")] 233 System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState); 234 235 HeuristicLab.Hive.Client.Core.ClientConsoleService.StatusCommons EndGetStatusInfos(System.IAsyncResult result); 236 237 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")] 238 HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer GetConnection(); 239 240 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/GetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/GetConnectionResponse")] 241 System.IAsyncResult BeginGetConnection(System.AsyncCallback callback, object asyncState); 242 243 HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer EndGetConnection(System.IAsyncResult result); 244 245 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")] 246 void SetConnection(HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer container); 247 248 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/SetConnection", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/SetConnectionResponse")] 249 System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer container, System.AsyncCallback callback, object asyncState); 250 251 void EndSetConnection(System.IAsyncResult result); 252 253 [System.ServiceModel.OperationContractAttribute(Action = "http://tempuri.org/IClientConsoleCommunicator/Disconnect", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse")] 254 void Disconnect(); 255 256 [System.ServiceModel.OperationContractAttribute(AsyncPattern = true, Action = "http://tempuri.org/IClientConsoleCommunicator/Disconnect", ReplyAction = "http://tempuri.org/IClientConsoleCommunicator/DisconnectResponse")] 257 System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState); 258 259 void EndDisconnect(System.IAsyncResult result); 260 } 261 262 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 263 public interface IClientConsoleCommunicatorChannel : IClientConsoleCommunicator, System.ServiceModel.IClientChannel { 264 } 265 266 [System.Diagnostics.DebuggerStepThroughAttribute()] 267 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 268 public partial class GetStatusInfosCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 269 270 private object[] results; 271 272 public GetStatusInfosCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 273 base(exception, cancelled, userState) { 274 this.results = results; 275 } 276 277 public HeuristicLab.Hive.Client.Core.ClientConsoleService.StatusCommons Result { 278 get { 279 base.RaiseExceptionIfNecessary(); 280 return ((HeuristicLab.Hive.Client.Core.ClientConsoleService.StatusCommons)(this.results[0])); 281 } 282 } 283 } 284 285 [System.Diagnostics.DebuggerStepThroughAttribute()] 286 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 287 public partial class GetConnectionCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { 288 289 private object[] results; 290 291 public GetConnectionCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : 292 base(exception, cancelled, userState) { 293 this.results = results; 294 } 295 296 public HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer Result { 297 get { 298 base.RaiseExceptionIfNecessary(); 299 return ((HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer)(this.results[0])); 300 } 301 } 302 } 303 304 [System.Diagnostics.DebuggerStepThroughAttribute()] 305 [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "3.0.0.0")] 306 public partial class ClientConsoleCommunicatorClient : System.ServiceModel.ClientBase<IClientConsoleCommunicator>, IClientConsoleCommunicator { 307 308 private BeginOperationDelegate onBeginGetStatusInfosDelegate; 309 310 private EndOperationDelegate onEndGetStatusInfosDelegate; 311 312 private System.Threading.SendOrPostCallback onGetStatusInfosCompletedDelegate; 313 314 private BeginOperationDelegate onBeginGetConnectionDelegate; 315 316 private EndOperationDelegate onEndGetConnectionDelegate; 317 318 private System.Threading.SendOrPostCallback onGetConnectionCompletedDelegate; 319 320 private BeginOperationDelegate onBeginSetConnectionDelegate; 321 322 private EndOperationDelegate onEndSetConnectionDelegate; 323 324 private System.Threading.SendOrPostCallback onSetConnectionCompletedDelegate; 325 326 private BeginOperationDelegate onBeginDisconnectDelegate; 327 328 private EndOperationDelegate onEndDisconnectDelegate; 329 330 private System.Threading.SendOrPostCallback onDisconnectCompletedDelegate; 331 332 public ClientConsoleCommunicatorClient() { 333 } 334 335 public ClientConsoleCommunicatorClient(string endpointConfigurationName) : 336 base(endpointConfigurationName) { 337 } 338 339 public ClientConsoleCommunicatorClient(string endpointConfigurationName, string remoteAddress) : 340 base(endpointConfigurationName, remoteAddress) { 341 } 342 343 public ClientConsoleCommunicatorClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 344 base(endpointConfigurationName, remoteAddress) { 345 } 346 347 public ClientConsoleCommunicatorClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 348 base(binding, remoteAddress) { 349 } 350 351 public event System.EventHandler<GetStatusInfosCompletedEventArgs> GetStatusInfosCompleted; 352 353 public event System.EventHandler<GetConnectionCompletedEventArgs> GetConnectionCompleted; 354 355 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> SetConnectionCompleted; 356 357 public event System.EventHandler<System.ComponentModel.AsyncCompletedEventArgs> DisconnectCompleted; 358 359 public HeuristicLab.Hive.Client.Core.ClientConsoleService.StatusCommons GetStatusInfos() { 360 return base.Channel.GetStatusInfos(); 361 } 362 363 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 364 public System.IAsyncResult BeginGetStatusInfos(System.AsyncCallback callback, object asyncState) { 365 return base.Channel.BeginGetStatusInfos(callback, asyncState); 366 } 367 368 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 369 public HeuristicLab.Hive.Client.Core.ClientConsoleService.StatusCommons EndGetStatusInfos(System.IAsyncResult result) { 370 return base.Channel.EndGetStatusInfos(result); 371 } 372 373 private System.IAsyncResult OnBeginGetStatusInfos(object[] inValues, System.AsyncCallback callback, object asyncState) { 374 return this.BeginGetStatusInfos(callback, asyncState); 375 } 376 377 private object[] OnEndGetStatusInfos(System.IAsyncResult result) { 378 HeuristicLab.Hive.Client.Core.ClientConsoleService.StatusCommons retVal = this.EndGetStatusInfos(result); 379 return new object[] { 146 380 retVal}; 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 public HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer GetConnection() {174 175 176 177 178 179 180 181 182 183 public HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer EndGetConnection(System.IAsyncResult result) {184 185 186 187 188 189 190 191 192 HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer retVal = this.EndGetConnection(result);193 381 } 382 383 private void OnGetStatusInfosCompleted(object state) { 384 if ((this.GetStatusInfosCompleted != null)) { 385 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 386 this.GetStatusInfosCompleted(this, new GetStatusInfosCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 387 } 388 } 389 390 public void GetStatusInfosAsync() { 391 this.GetStatusInfosAsync(null); 392 } 393 394 public void GetStatusInfosAsync(object userState) { 395 if ((this.onBeginGetStatusInfosDelegate == null)) { 396 this.onBeginGetStatusInfosDelegate = new BeginOperationDelegate(this.OnBeginGetStatusInfos); 397 } 398 if ((this.onEndGetStatusInfosDelegate == null)) { 399 this.onEndGetStatusInfosDelegate = new EndOperationDelegate(this.OnEndGetStatusInfos); 400 } 401 if ((this.onGetStatusInfosCompletedDelegate == null)) { 402 this.onGetStatusInfosCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetStatusInfosCompleted); 403 } 404 base.InvokeAsync(this.onBeginGetStatusInfosDelegate, null, this.onEndGetStatusInfosDelegate, this.onGetStatusInfosCompletedDelegate, userState); 405 } 406 407 public HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer GetConnection() { 408 return base.Channel.GetConnection(); 409 } 410 411 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 412 public System.IAsyncResult BeginGetConnection(System.AsyncCallback callback, object asyncState) { 413 return base.Channel.BeginGetConnection(callback, asyncState); 414 } 415 416 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 417 public HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer EndGetConnection(System.IAsyncResult result) { 418 return base.Channel.EndGetConnection(result); 419 } 420 421 private System.IAsyncResult OnBeginGetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) { 422 return this.BeginGetConnection(callback, asyncState); 423 } 424 425 private object[] OnEndGetConnection(System.IAsyncResult result) { 426 HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer retVal = this.EndGetConnection(result); 427 return new object[] { 194 428 retVal}; 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 public void SetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container) {222 223 224 225 226 public System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container, System.AsyncCallback callback, object asyncState) {227 228 229 230 231 232 233 234 235 236 HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container = ((HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer)(inValues[0]));237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 public void SetConnectionAsync(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container) {253 254 255 256 public void SetConnectionAsync(HeuristicLab.Hive.Client.Communication.ClientConsole.ConnectionContainer container, object userState) {257 258 259 260 261 262 263 264 265 266 429 } 430 431 private void OnGetConnectionCompleted(object state) { 432 if ((this.GetConnectionCompleted != null)) { 433 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 434 this.GetConnectionCompleted(this, new GetConnectionCompletedEventArgs(e.Results, e.Error, e.Cancelled, e.UserState)); 435 } 436 } 437 438 public void GetConnectionAsync() { 439 this.GetConnectionAsync(null); 440 } 441 442 public void GetConnectionAsync(object userState) { 443 if ((this.onBeginGetConnectionDelegate == null)) { 444 this.onBeginGetConnectionDelegate = new BeginOperationDelegate(this.OnBeginGetConnection); 445 } 446 if ((this.onEndGetConnectionDelegate == null)) { 447 this.onEndGetConnectionDelegate = new EndOperationDelegate(this.OnEndGetConnection); 448 } 449 if ((this.onGetConnectionCompletedDelegate == null)) { 450 this.onGetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnGetConnectionCompleted); 451 } 452 base.InvokeAsync(this.onBeginGetConnectionDelegate, null, this.onEndGetConnectionDelegate, this.onGetConnectionCompletedDelegate, userState); 453 } 454 455 public void SetConnection(HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer container) { 456 base.Channel.SetConnection(container); 457 } 458 459 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 460 public System.IAsyncResult BeginSetConnection(HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer container, System.AsyncCallback callback, object asyncState) { 461 return base.Channel.BeginSetConnection(container, callback, asyncState); 462 } 463 464 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 465 public void EndSetConnection(System.IAsyncResult result) { 466 base.Channel.EndSetConnection(result); 467 } 468 469 private System.IAsyncResult OnBeginSetConnection(object[] inValues, System.AsyncCallback callback, object asyncState) { 470 HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer container = ((HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer)(inValues[0])); 471 return this.BeginSetConnection(container, callback, asyncState); 472 } 473 474 private object[] OnEndSetConnection(System.IAsyncResult result) { 475 this.EndSetConnection(result); 476 return null; 477 } 478 479 private void OnSetConnectionCompleted(object state) { 480 if ((this.SetConnectionCompleted != null)) { 481 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 482 this.SetConnectionCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 483 } 484 } 485 486 public void SetConnectionAsync(HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer container) { 487 this.SetConnectionAsync(container, null); 488 } 489 490 public void SetConnectionAsync(HeuristicLab.Hive.Client.Core.ClientConsoleService.ConnectionContainer container, object userState) { 491 if ((this.onBeginSetConnectionDelegate == null)) { 492 this.onBeginSetConnectionDelegate = new BeginOperationDelegate(this.OnBeginSetConnection); 493 } 494 if ((this.onEndSetConnectionDelegate == null)) { 495 this.onEndSetConnectionDelegate = new EndOperationDelegate(this.OnEndSetConnection); 496 } 497 if ((this.onSetConnectionCompletedDelegate == null)) { 498 this.onSetConnectionCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnSetConnectionCompleted); 499 } 500 base.InvokeAsync(this.onBeginSetConnectionDelegate, new object[] { 267 501 container}, this.onEndSetConnectionDelegate, this.onSetConnectionCompletedDelegate, userState); 268 } 269 } 270 } 502 } 503 504 public void Disconnect() { 505 base.Channel.Disconnect(); 506 } 507 508 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 509 public System.IAsyncResult BeginDisconnect(System.AsyncCallback callback, object asyncState) { 510 return base.Channel.BeginDisconnect(callback, asyncState); 511 } 512 513 [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)] 514 public void EndDisconnect(System.IAsyncResult result) { 515 base.Channel.EndDisconnect(result); 516 } 517 518 private System.IAsyncResult OnBeginDisconnect(object[] inValues, System.AsyncCallback callback, object asyncState) { 519 return this.BeginDisconnect(callback, asyncState); 520 } 521 522 private object[] OnEndDisconnect(System.IAsyncResult result) { 523 this.EndDisconnect(result); 524 return null; 525 } 526 527 private void OnDisconnectCompleted(object state) { 528 if ((this.DisconnectCompleted != null)) { 529 InvokeAsyncCompletedEventArgs e = ((InvokeAsyncCompletedEventArgs)(state)); 530 this.DisconnectCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(e.Error, e.Cancelled, e.UserState)); 531 } 532 } 533 534 public void DisconnectAsync() { 535 this.DisconnectAsync(null); 536 } 537 538 public void DisconnectAsync(object userState) { 539 if ((this.onBeginDisconnectDelegate == null)) { 540 this.onBeginDisconnectDelegate = new BeginOperationDelegate(this.OnBeginDisconnect); 541 } 542 if ((this.onEndDisconnectDelegate == null)) { 543 this.onEndDisconnectDelegate = new EndOperationDelegate(this.OnEndDisconnect); 544 } 545 if ((this.onDisconnectCompletedDelegate == null)) { 546 this.onDisconnectCompletedDelegate = new System.Threading.SendOrPostCallback(this.OnDisconnectCompleted); 547 } 548 base.InvokeAsync(this.onBeginDisconnectDelegate, null, this.onEndDisconnectDelegate, this.onDisconnectCompletedDelegate, userState); 549 } 550 551 } -
trunk/sources/HeuristicLab.Hive.Client.Console/ServiceLocator.cs
r933 r953 4 4 using System.Text; 5 5 using System.ServiceModel; 6 //using HeuristicLab.Hive.Client.C ommunication.ClientConsole;6 //using HeuristicLab.Hive.Client.ClientConsole; 7 7 8 8 namespace HeuristicLab.Hive.Client.Console { -
trunk/sources/HeuristicLab.Hive.Client.Console/app.config
r933 r953 1 1 <?xml version="1.0" encoding="utf-8" ?> 2 2 <configuration> 3 <configSections> 4 <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" > 5 <section name="HeuristicLab.Hive.Client.Console.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" /> 6 </sectionGroup> 7 </configSections> 3 8 <system.serviceModel> 4 9 <bindings> 5 <netTcpBinding>6 <binding name="NetTcpBinding_IClientConsoleCommunicator" closeTimeout="00:01:00"7 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"8 transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions"9 hostNameComparisonMode="StrongWildcard" listenBacklog="10"10 maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10"11 maxReceivedMessageSize="65536">12 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"13 maxBytesPerRead="4096" maxNameTableCharCount="16384" />14 <reliableSession ordered="true" inactivityTimeout="00:10:00"15 enabled="false" />16 <security mode="Transport">17 <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" />18 <message clientCredentialType="Windows" />19 </security>20 </binding>21 </netTcpBinding>10 <netTcpBinding> 11 <binding name="NetTcpBinding_IClientConsoleCommunicator" closeTimeout="00:01:00" 12 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" 13 transactionFlow="false" transferMode="Buffered" transactionProtocol="OleTransactions" 14 hostNameComparisonMode="StrongWildcard" listenBacklog="10" 15 maxBufferPoolSize="524288" maxBufferSize="65536" maxConnections="10" 16 maxReceivedMessageSize="65536"> 17 <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" 18 maxBytesPerRead="4096" maxNameTableCharCount="16384" /> 19 <reliableSession ordered="true" inactivityTimeout="00:10:00" 20 enabled="false" /> 21 <security mode="Transport"> 22 <transport clientCredentialType="Windows" protectionLevel="EncryptAndSign" /> 23 <message clientCredentialType="Windows" /> 24 </security> 25 </binding> 26 </netTcpBinding> 22 27 </bindings> 23 28 <client> 24 29 <endpoint address="net.tcp://127.0.0.1:8000/ClientConsole/ClientConsoleCommunicator" 25 30 binding="netTcpBinding" bindingConfiguration="NetTcpBinding_IClientConsoleCommunicator" 26 contract="Client WCFService.IClientConsoleCommunicator" name="NetTcpBinding_IClientConsoleCommunicator">31 contract="ClientService.IClientConsoleCommunicator" name="NetTcpBinding_IClientConsoleCommunicator"> 27 32 <identity> 28 33 <userPrincipalName value="mse08004@fhs-hagenberg.ac.at" /> … … 31 36 </client> 32 37 </system.serviceModel> 38 <userSettings> 39 <HeuristicLab.Hive.Client.Console.Properties.Settings> 40 <setting name="IpAdress" serializeAs="String"> 41 <value>10.0.0.1</value> 42 </setting> 43 </HeuristicLab.Hive.Client.Console.Properties.Settings> 44 </userSettings> 33 45 </configuration>
Note: See TracChangeset
for help on using the changeset viewer.