/// <summary>
 /// Initializes a new instance of the WebHookActivity class.
 /// </summary>
 /// <param name="name">Activity name.</param>
 /// <param name="url">WebHook activity target endpoint and path. Type:
 /// string (or Expression with resultType string).</param>
 /// <param name="additionalProperties">Unmatched properties from the
 /// message are deserialized this collection</param>
 /// <param name="description">Activity description.</param>
 /// <param name="dependsOn">Activity depends on condition.</param>
 /// <param name="userProperties">Activity user properties.</param>
 /// <param name="timeout">The timeout within which the webhook should
 /// be called back. If there is no value specified, it defaults to 10
 /// minutes. Type: string. Pattern:
 /// ((\d+)\.)?(\d\d):(60|([0-5][0-9])):(60|([0-5][0-9])).</param>
 /// <param name="headers">Represents the headers that will be sent to
 /// the request. For example, to set the language and type on a
 /// request: "headers" : { "Accept-Language": "en-us", "Content-Type":
 /// "application/json" }. Type: string (or Expression with resultType
 /// string).</param>
 /// <param name="body">Represents the payload that will be sent to the
 /// endpoint. Required for POST/PUT method, not allowed for GET method
 /// Type: string (or Expression with resultType string).</param>
 /// <param name="authentication">Authentication method used for calling
 /// the endpoint.</param>
 public WebHookActivity(string name, object url, IDictionary <string, object> additionalProperties = default(IDictionary <string, object>), string description = default(string), IList <ActivityDependency> dependsOn = default(IList <ActivityDependency>), IList <UserProperty> userProperties = default(IList <UserProperty>), string timeout = default(string), object headers = default(object), object body = default(object), WebActivityAuthentication authentication = default(WebActivityAuthentication))
     : base(name, additionalProperties, description, dependsOn, userProperties)
 {
     Url            = url;
     Timeout        = timeout;
     Headers        = headers;
     Body           = body;
     Authentication = authentication;
     CustomInit();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the WebActivity class.
 /// </summary>
 /// <param name="name">Activity name.</param>
 /// <param name="method">Rest API method for target endpoint. Possible
 /// values include: 'GET', 'POST', 'PUT', 'DELETE'</param>
 /// <param name="url">Web activity target endpoint and path. Type:
 /// string (or Expression with resultType string).</param>
 /// <param name="additionalProperties">Unmatched properties from the
 /// message are deserialized this collection</param>
 /// <param name="description">Activity description.</param>
 /// <param name="dependsOn">Activity depends on condition.</param>
 /// <param name="userProperties">Activity user properties.</param>
 /// <param name="linkedServiceName">Linked service reference.</param>
 /// <param name="policy">Activity policy.</param>
 /// <param name="headers">Represents the headers that will be sent to
 /// the request. For example, to set the language and type on a
 /// request: "headers" : { "Accept-Language": "en-us", "Content-Type":
 /// "application/json" }. Type: string (or Expression with resultType
 /// string).</param>
 /// <param name="body">Represents the payload that will be sent to the
 /// endpoint. Required for POST/PUT method, not allowed for GET method
 /// Type: string (or Expression with resultType string).</param>
 /// <param name="authentication">Authentication method used for calling
 /// the endpoint.</param>
 /// <param name="datasets">List of datasets passed to web
 /// endpoint.</param>
 /// <param name="linkedServices">List of linked services passed to web
 /// endpoint.</param>
 public WebActivity(string name, string method, object url, IDictionary <string, object> additionalProperties = default(IDictionary <string, object>), string description = default(string), IList <ActivityDependency> dependsOn = default(IList <ActivityDependency>), IList <UserProperty> userProperties = default(IList <UserProperty>), LinkedServiceReference linkedServiceName = default(LinkedServiceReference), ActivityPolicy policy = default(ActivityPolicy), object headers = default(object), object body = default(object), WebActivityAuthentication authentication = default(WebActivityAuthentication), IList <DatasetReference> datasets = default(IList <DatasetReference>), IList <LinkedServiceReference> linkedServices = default(IList <LinkedServiceReference>))
     : base(name, additionalProperties, description, dependsOn, userProperties, linkedServiceName, policy)
 {
     Method         = method;
     Url            = url;
     Headers        = headers;
     Body           = body;
     Authentication = authentication;
     Datasets       = datasets;
     LinkedServices = linkedServices;
     CustomInit();
 }