2018-07-26 16:55:41 +02:00
|
|
|
|
using System;
|
|
|
|
|
using appsrv.attributes;
|
|
|
|
|
using sharpwawi.models;
|
|
|
|
|
|
|
|
|
|
namespace sharpwawi
|
|
|
|
|
{
|
|
|
|
|
public static class Parts
|
|
|
|
|
{
|
|
|
|
|
[WebCallable]
|
|
|
|
|
public static Part Create(){
|
|
|
|
|
return new Part();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[WebCallable]
|
|
|
|
|
public static Part ByKey(String key){
|
|
|
|
|
return new Part();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
2018-07-30 09:23:18 +02:00
|
|
|
|
static Part[] parts = CreateParts(10000);
|
|
|
|
|
|
|
|
|
|
static Part[] CreateParts(int count)
|
|
|
|
|
{
|
|
|
|
|
Part[] parts = new Part[count];
|
|
|
|
|
for (int n = 0; n < parts.Length; n++)
|
|
|
|
|
parts[n] = new Part();
|
|
|
|
|
return parts;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[WebCallable]
|
|
|
|
|
public static Part[] TestParts()
|
|
|
|
|
{
|
|
|
|
|
return parts;
|
|
|
|
|
}
|
2018-07-26 16:55:41 +02:00
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|