Пример #1
0
 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));
     }
 }
Пример #2
0
 private static System.ServiceModel.EndpointAddress GetDefaultEndpointAddress()
 {
     return(RepositoryClient.GetEndpointAddress(EndpointConfiguration.BasicHttpBinding_IRepository));
 }
Пример #3
0
 private static System.ServiceModel.Channels.Binding GetDefaultBinding()
 {
     return(RepositoryClient.GetBindingForEndpoint(EndpointConfiguration.BasicHttpBinding_IRepository));
 }
Пример #4
0
 public RepositoryClient(EndpointConfiguration endpointConfiguration, System.ServiceModel.EndpointAddress remoteAddress) :
     base(RepositoryClient.GetBindingForEndpoint(endpointConfiguration), remoteAddress)
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #5
0
 public RepositoryClient(EndpointConfiguration endpointConfiguration) :
     base(RepositoryClient.GetBindingForEndpoint(endpointConfiguration), RepositoryClient.GetEndpointAddress(endpointConfiguration))
 {
     this.Endpoint.Name = endpointConfiguration.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }
Пример #6
0
 public RepositoryClient() :
     base(RepositoryClient.GetDefaultBinding(), RepositoryClient.GetDefaultEndpointAddress())
 {
     this.Endpoint.Name = EndpointConfiguration.BasicHttpBinding_IRepository.ToString();
     ConfigureEndpoint(this.Endpoint, this.ClientCredentials);
 }