예제 #1
0
 /// <summary>
 /// Creates an HttpReceive.
 /// </summary>
 /// <returns>
 /// An activity
 /// </returns>
 public static Activity Create()
 {
     return
         (HttpImports.AddImports(
              new HttpReceive
     {
         UriTemplate = "/{ID}",
         CanCreateInstance = true,
         Body =
             new ActivityFunc <HttpRequestMessage, IDictionary <string, string>, object>
         {
             Argument1 = new DelegateInArgument <HttpRequestMessage>("request"),
             Argument2 = new DelegateInArgument <IDictionary <string, string> >("args"),
             Result = new DelegateOutArgument <object>("response"),
         }
     }));
 }
예제 #2
0
 /// <summary>
 /// The create.
 /// </summary>
 /// <returns>
 /// </returns>
 public static Activity Create()
 {
     return(HttpImports.AddImports(new HttpWorkflowService()));
 }