Skip to content

Instantly share code, notes, and snippets.

@spkellydev
Created June 23, 2020 01:29
Show Gist options
  • Save spkellydev/ba1bf0e45ab209574002c4c0ada87264 to your computer and use it in GitHub Desktop.
Save spkellydev/ba1bf0e45ab209574002c4c0ada87264 to your computer and use it in GitHub Desktop.
BasicBinding.HWCommandsClient wfobj = new BasicBinding.HWCommandsClient();
wfobj.ClientCredentials.Windows.ClientCredential.UserName = "USERNAME";
wfobj.ClientCredentials.Windows.ClientCredential.Password = "PASSWORD";
wfobj.Endpoint.Address = new EndpointAddress(new Uri("ENDPOINT"), UpnEndpointIdentity.CreateDnsIdentity(""));
var stopwatch = new Stopwatch();
stopwatch.Start();
wfobj.SendDiagnosticCommand(RRFISDeviceConnectivity.Diagnostics.PollingCommand.SetSignalGeneratorOutput, 20000);
Console.WriteLine("call made ");
Console.ReadLine();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment