/// <summary> /// Get row count for method /// </summary> /// <param name="mthdVrsnId"></param> /// <returns></returns> public int SelectRowCount( int mthdVrsnId) { if (ServiceFacade.UseRemoteServices) { Mobius.Services.Native.INativeSession nativeClient = ServiceFacade.CreateNativeSessionProxy(); Services.Native.NativeMethodTransportObject resultObject = ServiceFacade.InvokeNativeMethod(nativeClient, (int)Services.Native.ServiceCodes.MobiusAnnotationService, (int)Services.Native.ServiceOpCodes.MobiusAnnotationService.SelectRowCount, new Services.Native.NativeMethodTransportObject(new object[] { instanceId, mthdVrsnId })); ((System.ServiceModel.IClientChannel)nativeClient).Close(); int count = (int)resultObject.Value; return(count); } else { return(Instance.SelectRowCount(mthdVrsnId)); } }