示例#1
0
        public static ProtocolStack WithPremise(Premise premise, string key = "")
        {
            ProtocolStack constructing = new ProtocolStack();
            Premise createPremise, updatePremise, deletePremise;

            createPremise = premise.Clone();

            updatePremise = premise.Clone();
            updatePremise.nullable = true;

            deletePremise = new Premise();

            constructing.Create = Protocol.WithPremise(createPremise, key);
            constructing.Update = Protocol.WithPremise(updatePremise, key);
            constructing.Delete = Protocol.WithPremise(deletePremise, key);

            return constructing;
        }
示例#2
0
 public ClientHandshakeFinishedEvent_Success(ProtocolStack protocolStack)
 {
     this.ProtocolStackConflict = protocolStack;
 }
示例#3
0
 public void LinkProtocolStackEvents(ProtocolStack protocolStack)
 {
     UnlinkProtocolStack(protocolStack);
     protocolStack.NextHighLayerEvent += OnNextHighLayerEvent;
     protocolStack.NextLowLayerEvent  += OnNextLowLayerEvent;
 }
示例#4
0
        private string ModifierString(ProtocolStack protocolStack)
        {
//JAVA TO C# CONVERTER TODO TASK: Most Java stream collectors are not converted by Java to C# Converter:
            return(protocolStack.ModifierProtocols().Select(Org.Neo4j.causalclustering.protocol.Protocol_ModifierProtocol.implementation).collect(Collectors.joining(",", "[", "]")));
        }