コード例 #1
0
    protected override void Process(SIGProcessingContext context)
    {
        if (!Assert(Dataset != null, "No dataset provided") ||
            !Assert(Item != null, "No dataset item provided") ||
            !Assert(Annotation != null, "No annotation provided"))
        {
            return;
        }

        var id = Dataset.AddItem(Item);

        Dataset.AddAnnotation(id, Annotation);
    }