Exemple #1
0
        private Comment(Mediator mediator, Node node, string body)
        {
            Id        = Guid.NewGuid().ToString();
            Node      = new NodeFootPrint(node);
            Signature = new UserSignature(mediator.SessionUser);
            Body      = body;

            // Register comment on the node
            node.RegisterSessionComment(this);
        }
Exemple #2
0
        private Attachment(Mediator mediator, Node node, string name, string extension, byte[] filebytes)
        {
            Id        = Guid.NewGuid().ToString();
            Name      = name;
            Extension = extension;
            Signature = new UserSignature(mediator.SessionUser);
            OwnerNode = new NodeFootPrint(node);
            Uri       = "https:\\iamfara.com";

            node.RegisterSessionAttachment(this);
        }