示例#1
0
        public SessionViewModel(Guid sessionUniqueId, RTSessionConfig recentSessionConfig)
        {
            OneWaySessions = new Dictionary <Guid, OneWaySessionViewModel>();

            SessionUniqueId       = sessionUniqueId;
            m_recentSessionConfig = recentSessionConfig;

            recentSessionConfig.SessionGroupConfigReference.Load();
            recentSessionConfig.LeftSourceConfigReference.Load();
            recentSessionConfig.LeftSourceConfig.MigrationSourceReference.Load();
            recentSessionConfig.RightSourceConfigReference.Load();
            recentSessionConfig.RightSourceConfig.MigrationSourceReference.Load();

            OneWaySessions[recentSessionConfig.LeftSourceConfig.MigrationSource.UniqueId] = new OneWaySessionViewModel(recentSessionConfig, recentSessionConfig.LeftSourceConfig.MigrationSource, recentSessionConfig.RightSourceConfig.MigrationSource);
            WorkFlowType workFlowType = new WorkFlowType(recentSessionConfig.SessionGroupConfig.WorkFlowType);

            if (workFlowType.DirectionOfFlow == DirectionOfFlow.Bidirectional)
            {
                OneWaySessions[recentSessionConfig.RightSourceConfig.MigrationSource.UniqueId] = new OneWaySessionViewModel(recentSessionConfig, recentSessionConfig.RightSourceConfig.MigrationSource, recentSessionConfig.LeftSourceConfig.MigrationSource);
            }
        }
示例#2
0
 public OneWaySessionViewModel(RTSessionConfig session, RTMigrationSource source, RTMigrationSource target)
 {
     Session = session;
     Source  = source;
     Target  = target;
 }
示例#3
0
 public SessionConfigViewModel(RTSessionConfig sessionConfig)
 {
     m_sessionConfig = sessionConfig;
 }