예제 #1
0
		public OperationResult<List<CurrentConsumption>> GetCurrentConsumption(CurrentConsumptionFilter item)
		{
			return SafeOperationCall(() =>
			{
				var rubezhService = RubezhServiceFactory.Create(TimeSpan.FromMinutes(10));
				using (rubezhService as IDisposable)
					return rubezhService.GetCurrentConsumption(RubezhServiceFactory.UID, item);
			}, "GetCurrentConsumption");
		}
예제 #2
0
		public OperationResult<List<CurrentConsumption>> GetCurrentConsumption(Guid clientUID, CurrentConsumptionFilter item)
		{
			return SafeOperationCall(clientUID, () => RubezhService.GetCurrentConsumption(clientUID, item), "GetCurrentConsumption");
		}
예제 #3
0
		public OperationResult<List<CurrentConsumption>> GetCurrentConsumption(Guid clientUID, CurrentConsumptionFilter filter)
		{
			using (var databaseService = new RubezhDAL.DataClasses.DbService())
			{
				return databaseService.CurrentConsumptionTranslator.Get(filter);
			}
		}