예제 #1
0
 public virtual Response visit(ICommandVisitor visitor)
 {
     throw new ApplicationException("BaseCommand.Visit() not implemented");
 }
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processConnectionControl(this));
 }
예제 #3
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptGraphicalPrimitiveEllipticalArcClose(this, parameter);
 }
예제 #4
0
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     throw new System.NotImplementedException();
 }
예제 #5
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processProducerAck(this);
 }
예제 #6
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processBrokerInfo(this);
 }
예제 #7
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptControlAuxiliaryColor(this, parameter);
 }
예제 #8
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processReplayCommand(this);
 }
예제 #9
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processAddSession(this));
 }
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptMetafileDescriptorCharacterCodingAnnouncer(this, parameter);
 }
예제 #11
0
 public void Accept(ICommandVisitor visitor)
 {
     visitor.Visit(this);
 }
예제 #12
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptPictureDescriptorColorSelectionMode(this, parameter);
 }
예제 #13
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptAttributeTextPath(this, parameter);
 }
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processMessageDispatchNotification(this);
 }
예제 #15
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessConnectionError(this));
 }
예제 #16
0
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processWireFormat(this);
 }
예제 #17
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptSegmentClipInheritance(this, parameter);
 }
예제 #18
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     switch(type)
     {
         case TransactionInfo.BEGIN:
             return visitor.processBeginTransaction(this);
         case TransactionInfo.END:
             return visitor.processEndTransaction(this);
         case TransactionInfo.PREPARE:
             return visitor.processPrepareTransaction(this);
         case TransactionInfo.COMMIT_ONE_PHASE:
             return visitor.processCommitTransactionOnePhase(this);
         case TransactionInfo.COMMIT_TWO_PHASE:
             return visitor.processCommitTransactionTwoPhase(this);
         case TransactionInfo.ROLLBACK:
             return visitor.processRollbackTransaction(this);
         case TransactionInfo.RECOVER:
             return visitor.processRecoverTransactions(this);
         case TransactionInfo.FORGET:
             return visitor.processForgetTransaction(this);
         default:
             throw new IOException("Transaction info type unknown: " + type);
     }
 }
예제 #19
0
 public override TResult Visit <TArg, TResult>(ICommandVisitor <TArg, TResult> visitor, TArg arg)
 {
     return(visitor.VisitLetCommand(this, arg));
 }
예제 #20
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processRemoveSubscriptionInfo(this);
 }
예제 #21
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginApplicationStructureBody(this, parameter);
 }
예제 #22
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processMessageAck(this);
 }
예제 #23
0
 public override Task <Result> Accept(ICommandVisitor visitor)
 {
     return(visitor.Visit(this));
 }
예제 #24
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginCompoundTextPath(this, parameter);
 }
예제 #25
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processBrokerInfo(this));
 }
예제 #26
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processShutdownInfo(this));
 }
예제 #27
0
 public void AcceptVisitor(ICommandVisitor visitor) => visitor.Visit(this);
예제 #28
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processReplayCommand(this));
 }
예제 #29
0
 public T AcceptVisitor <T>(ICommandVisitor <T> visitor) => visitor.Visit(this);
예제 #30
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     switch(objectId.GetDataStructureType())
     {
         case ConnectionId.ID_CONNECTIONID:
             return visitor.processRemoveConnection((ConnectionId) objectId);
         case SessionId.ID_SESSIONID:
             return visitor.processRemoveSession((SessionId) objectId);
         case ConsumerId.ID_CONSUMERID:
             return visitor.processRemoveConsumer((ConsumerId) objectId);
         case ProducerId.ID_PRODUCERID:
             return visitor.processRemoveProducer((ProducerId) objectId);
         default:
             throw new IOException("Unknown remove command type: " + objectId.GetDataStructureType());
     }
 }
예제 #31
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptAttributeCharacterOrientation(this, parameter);
 }
예제 #32
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     if(IsAddOperation)
     {
     return visitor.processAddDestination(this);
     }
     else if(IsRemoveOperation)
     {
     return visitor.processRemoveDestination(this);
     }
     throw new IOException("Unknown operation type: " + OperationType);
 }
예제 #33
0
 public override Response visit(ICommandVisitor visitor)
 {
     return(visitor.processMessageDispatch(this));
 }
예제 #34
0
 public virtual Response visit(ICommandVisitor visitor)
 {
     throw new ApplicationException("BaseCommand.Visit() not implemented");
 }
예제 #35
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptDelimiterBeginMetafile(this, parameter);
 }
예제 #36
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processKeepAliveInfo(this);
 }
예제 #37
0
 public override T Accept <T>(ICommandVisitor <T> visitor)
 {
     return(visitor.Visit(this));
 }
예제 #38
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processShutdownInfo(this);
 }
예제 #39
0
 public CommandVisitorPipe(ICommandVisitor visitor)
 {
     this.visitor = visitor;
 }
예제 #40
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processAddConnection( this );
 }
예제 #41
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessAddConsumer(this));
 }
예제 #42
0
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     throw new System.NotImplementedException();
 }
예제 #43
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response Visit(ICommandVisitor visitor)
 {
     return(visitor.ProcessKeepAliveInfo(this));
 }
예제 #44
0
 ///
 /// <summery>
 ///  Allows a Visitor to visit this command and return a response to the
 ///  command based on the command type being visited.  The command will call
 ///  the proper processXXX method in the visitor.
 /// </summery>
 ///
 public override Response visit(ICommandVisitor visitor)
 {
     return visitor.processConsumerControl(this);
 }
예제 #45
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptSegmentSegmentDisplayPriority(this, parameter);
 }
예제 #46
0
 public void AcceptVisitor(ICommandVisitor visitor)
 {
     visitor.Accept(this);
 }
예제 #47
0
 public override void Accept <T>(ICommandVisitor <T> visitor, T parameter)
 {
     visitor.AcceptGraphicalPrimitiveCircle(this, parameter);
 }