Class NotificationHelper
Usefull to send a post to a server
Inheritance
System.Object
NotificationHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SecureExchangesSDK.Helpers
Assembly: SecureExchangesSDK.dll
Syntax
public static class NotificationHelper
Methods
POSTWs(String, String, String, out HttpStatusCode, Boolean)
Post content to a web service
Declaration
public static string POSTWs(string url, string content, string contentType, out HttpStatusCode status, bool ignoreCertificatError = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The url to post the data |
System.String | content | The data to post |
System.String | contentType | The content type |
System.Net.HttpStatusCode | status | return the status of the post |
System.Boolean | ignoreCertificatError | ignore certificate error, by default is true |
Returns
Type | Description |
---|---|
System.String |
POSTWSJson(String, String, out HttpStatusCode, Boolean)
Post JSON data
Declaration
public static string POSTWSJson(string url, string jsonContent, out HttpStatusCode status, bool ignoreCertificatError = true)
Parameters
Type | Name | Description |
---|---|---|
System.String | url | The url to post the data |
System.String | jsonContent | The jons content to post |
System.Net.HttpStatusCode | status | The status of the answer |
System.Boolean | ignoreCertificatError | Ignore certificate error, by default set to true |
Returns
Type | Description |
---|---|
System.String |