-
-
Save distributedlife/7447486 to your computer and use it in GitHub Desktop.
distributedlife.com blog code samples
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| NoDataChanges () ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web_service_call | |
| ( | |
| "StepName={Service}::{Method}", | |
| "SOAPMethod={Service}|{Binding}|{Method}", | |
| "ResponseParam=response", | |
| "Service={Service}", | |
| "ExpectedResponse=AnySoap", | |
| BEGIN_ARGUMENTS, | |
| END_ARGUMENTS, | |
| BEGIN_RESULT, | |
| END_RESULT, | |
| LAST | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #define lr_get lr_eval_string | |
| #define lr_set lr_save_string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void ConfigureMethod (const char* Method) | |
| { | |
| lr_set (Method, "Method") ; | |
| lr_set (lr_get ("{Method}Response"), "Response"); | |
| lr_set (lr_get ("{Method}"), "HPResponse"); | |
| lr_set (lr_get ("{Method}Result"), "Result"); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const char* GetYesterdaysDate (void) | |
| { | |
| lr_save_datetime ("%Y-%m-%dT00:00:00", DATE_NOW - ONE_DAY, "__GetYesterdaysDate") ; | |
| return lr_eval_string ("{__GetYesterdaysDate}") ; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void CheckRegistryValueNotFound (const char* const Server, const char* const SubKey, const char* const Property) | |
| { | |
| lr_save_string (Server, "__CheckRegistryValueNotFound_Server") ; | |
| lr_save_string (SubKey, "__CheckRegistryValueNotFound_SubKey") ; | |
| lr_save_string (Property, "__CheckRegistryValueNotFound_Property") ; | |
| //more code | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| AlteredTable (Add, "ADDRESSES") ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CheckDataIntegrity () ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| EnableCheckForExceptions (0) ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ExceptionValidation.Enable () ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| enum EnabledOptions {No, Yes} ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void EnableCheckForExceptions (enum EnabledOptions ExceptionValidationEnabled) | |
| { | |
| //... | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| web_service_call | |
| ( | |
| "StepName=Do something", | |
| "SOAPMethod=MyService|MyServiceBinding|MyOperationName", | |
| "ResponseParam=response", | |
| "Service=MyService", | |
| "ExpectedResponse=AnySoap", | |
| BEGIN_ARGUMENTS, | |
| END_ARGUMENTS, | |
| BEGIN_RESULT, | |
| END_RESULT, | |
| LAST | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| lr_save_string (“MyService”, “Service”) ; | |
| lr_save_string (“MyServiceBinding”, “Binding”) ; | |
| lr_save_string (“MyOperationName”, “Method”) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment