Ejemplo n.º 1
0
        public static async Task <ActivationsCommit> Revert(ProtocolHandler proto, Block block, ActivationOperation op)
        {
            var commit = new ActivationsCommit(proto);
            await commit.Init(block, op);

            await commit.Revert();

            return(commit);
        }
Ejemplo n.º 2
0
        public static async Task <ActivationsCommit> Apply(ProtocolHandler proto, Block block, RawOperation op, RawActivationContent content)
        {
            var commit = new ActivationsCommit(proto);
            await commit.Init(block, op, content);

            await commit.Apply();

            return(commit);
        }