Skip to content

Instantly share code, notes, and snippets.

@Mythos
Created June 27, 2014 06:10
Show Gist options
  • Save Mythos/44dfffc4a44c6b9414df to your computer and use it in GitHub Desktop.
Save Mythos/44dfffc4a44c6b9414df to your computer and use it in GitHub Desktop.
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.18444
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Client.WCFService {
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
[System.ServiceModel.ServiceContractAttribute(ConfigurationName="WCFService.IHostFunctions", CallbackContract=typeof(Client.WCFService.IHostFunctionsCallback))]
public interface IHostFunctions {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHostFunctions/Subscribe", ReplyAction="http://tempuri.org/IHostFunctions/SubscribeResponse")]
void Subscribe();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHostFunctions/Subscribe", ReplyAction="http://tempuri.org/IHostFunctions/SubscribeResponse")]
System.Threading.Tasks.Task SubscribeAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHostFunctions/Unsubscribe", ReplyAction="http://tempuri.org/IHostFunctions/UnsubscribeResponse")]
void Unsubscribe();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHostFunctions/Unsubscribe", ReplyAction="http://tempuri.org/IHostFunctions/UnsubscribeResponse")]
System.Threading.Tasks.Task UnsubscribeAsync();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHostFunctions/GetTimes", ReplyAction="http://tempuri.org/IHostFunctions/GetTimesResponse")]
System.DateTime[] GetTimes();
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHostFunctions/GetTimes", ReplyAction="http://tempuri.org/IHostFunctions/GetTimesResponse")]
System.Threading.Tasks.Task<System.DateTime[]> GetTimesAsync();
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface IHostFunctionsCallback {
[System.ServiceModel.OperationContractAttribute(Action="http://tempuri.org/IHostFunctions/OnCallback", ReplyAction="http://tempuri.org/IHostFunctions/OnCallbackResponse")]
void OnCallback();
}
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public interface IHostFunctionsChannel : Client.WCFService.IHostFunctions, System.ServiceModel.IClientChannel {
}
[System.Diagnostics.DebuggerStepThroughAttribute()]
[System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
public partial class HostFunctionsClient : System.ServiceModel.DuplexClientBase<Client.WCFService.IHostFunctions>, Client.WCFService.IHostFunctions {
public HostFunctionsClient(System.ServiceModel.InstanceContext callbackInstance) :
base(callbackInstance) {
}
public HostFunctionsClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName) :
base(callbackInstance, endpointConfigurationName) {
}
public HostFunctionsClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, string remoteAddress) :
base(callbackInstance, endpointConfigurationName, remoteAddress) {
}
public HostFunctionsClient(System.ServiceModel.InstanceContext callbackInstance, string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) :
base(callbackInstance, endpointConfigurationName, remoteAddress) {
}
public HostFunctionsClient(System.ServiceModel.InstanceContext callbackInstance, System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) :
base(callbackInstance, binding, remoteAddress) {
}
public void Subscribe() {
base.Channel.Subscribe();
}
public System.Threading.Tasks.Task SubscribeAsync() {
return base.Channel.SubscribeAsync();
}
public void Unsubscribe() {
base.Channel.Unsubscribe();
}
public System.Threading.Tasks.Task UnsubscribeAsync() {
return base.Channel.UnsubscribeAsync();
}
public System.DateTime[] GetTimes() {
return base.Channel.GetTimes();
}
public System.Threading.Tasks.Task<System.DateTime[]> GetTimesAsync() {
return base.Channel.GetTimesAsync();
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment