protected override void FillDefaulValues()
        {
            if (VersionCheck == null)
            {
                VersionCheck = new VersionCheck();
            }

            // Convert MSMQ plain to XML, as we now support more then one content serializer
            foreach (var srv in this.Servers)
            {
                if (srv.MessageBus == "NServiceBus")
                {
                    if (srv.MessageBusQueueType == "MSMQ (XML)")
                    {
                        srv.MessageBusQueueType = "MSMQ";
                    }

                    else if (srv.MessageBusQueueType == "MSMQ (JSON)")
                    {
                        srv.MessageBusQueueType = "MSMQ";
                    }
                }
            }

            if (CommandDefinition == null)
            {
                CommandDefinition = new CommandDefinition();

                // Temp until support for more then NServiceBus is implemented
                CommandDefinition.InheritsType = "NServiceBus.ICommand, NServiceBus";
            }
        }
예제 #2
0
    protected override void FillDefaulValues() {

      if( VersionCheck == null ) 
        VersionCheck = new VersionCheck();

      // Convert MSMQ plain to XML, as we now support more then one content serializer
      foreach( var srv in this.Servers ) {
        if( srv.MessageBus == "NServiceBus" ) {

          if( srv.MessageBusQueueType == "MSMQ (XML)" )
            srv.MessageBusQueueType = "MSMQ";

          else if( srv.MessageBusQueueType == "MSMQ (JSON)" )
            srv.MessageBusQueueType = "MSMQ";

        }
      }

      if( CommandDefinition == null ) {
      
        CommandDefinition = new CommandDefinition(); 
        
        // Temp until support for more then NServiceBus is implemented
        CommandDefinition.InheritsType = "NServiceBus.ICommand, NServiceBus";

      }

    }