public void Run(IBackgroundTaskInstance taskInstance) { sw = new Stopwatch(); repoClient = new RaspiWebService.RepositoryClient(); _deferral = taskInstance.GetDeferral(); InitGPIO(); if (pinEcho != null & pinTrigger != null) { var result = repoClient.AddValueAsync("INFO", "RUN METODU İÇİNDEYİZ").Result; this.timer = ThreadPoolTimer.CreatePeriodicTimer(Timer_Tick, TimeSpan.FromMilliseconds(1000)); } }
private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress() { return(RepositoryClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IRepository)); }
private static System.ServiceModel.Channels.Binding GetDefaultBinding() { return(RepositoryClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IRepository)); }
public RepositoryClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) : base(RepositoryClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public RepositoryClient(EndpointConfiguration endpointConfiguration) : base(RepositoryClient.GetBindingForEndpoint(endpointConfiguration), RepositoryClient.GetEndpointAddress(endpointConfiguration)) { this.Endpoint.Name = endpointConfiguration.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }
public RepositoryClient() : base(RepositoryClient.GetDefaultBinding(), RepositoryClient.GetDefaultEndpointAddress()) { this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IRepository.ToString(); ConfigureEndpoint(this.Endpoint, this.ClientCredentials); }