Пример #1
0
 /// <summary>
 /// Startet den Workflow mit einer neuen Bestellung
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Input ist ein Order-JSON File
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task OrderAsync(this IShopStantlyGroup3 operations, Order body = default(Order), CancellationToken cancellationToken = default(CancellationToken))
 {
     await operations.OrderWithHttpMessagesAsync(body, null, cancellationToken).ConfigureAwait(false);
 }
Пример #2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Orders EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToOrders(Order order)
 {
     base.AddObject("Orders", order);
 }
Пример #3
0
 /// <summary>
 /// Startet den Workflow mit einer neuen Bestellung
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='body'>
 /// Input ist ein Order-JSON File
 /// </param>
 public static void Order(this IShopStantlyGroup3 operations, Order body = default(Order))
 {
     Task.Factory.StartNew(s => ((IShopStantlyGroup3)s).OrderAsync(body), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
Пример #4
0
 /// <summary>
 /// Create a new Order object.
 /// </summary>
 /// <param name="orderID">Initial value of the OrderID property.</param>
 /// <param name="machineID">Initial value of the MachineID property.</param>
 /// <param name="orderNumber">Initial value of the OrderNumber property.</param>
 /// <param name="personID">Initial value of the PersonID property.</param>
 /// <param name="status">Initial value of the Status property.</param>
 public static Order CreateOrder(global::System.Int32 orderID, global::System.Int32 machineID, global::System.String orderNumber, global::System.Int32 personID, global::System.Boolean status)
 {
     Order order = new Order();
     order.OrderID = orderID;
     order.MachineID = machineID;
     order.OrderNumber = orderNumber;
     order.PersonID = personID;
     order.Status = status;
     return order;
 }