コード例 #1
0
		public void Sync ()
		{
			
			if (NetworkStatusCheck.IsReachable())
			{
				RemoteScheduledSessionsRepository remoteScheduleRepository = new RemoteScheduledSessionsRepository();
				LocalQueueRepository localQueueRepository = new LocalQueueRepository();
				LocalSessionsRepository localSessionsRepository = new LocalSessionsRepository();
				
				if (localQueueRepository.Count() > 0)
				{
					var allSessions = localSessionsRepository.Find();
					
					var queuedItems = localQueueRepository.Find();
					foreach (var queuedItem in queuedItems)
					{
						//var remoteSchedule = new Entity
						var sessionEntity = allSessions.Where(x => x.URI == queuedItem.URI);
						var schedule = new Schedule()
						{
							ConferenceName = queuedItem.ConferenceName,
							
						};
						remoteScheduleRepository.Save(schedule);
					}
				}
			}
			
		}
コード例 #2
0
		protected void AddToRemote (ScheduledSessionEntity scheduledSession)
		{
			var remote = new RemoteScheduledSessionsRepository ();
			var schedule = remote.GetSchedule ("gibbensr");
		}