I have a use-case where a user requests a file download on a different page. That page submits a request, which is queued for processing in the background via BackgroundJobManager. When the request is processed, the file is placed in Azure block storage, and then a notification is posted back to requesting user that their file is ready. The notification text & url then allow the user to download the file that was generated. Lastly, there is a separate background job that is scheduled for ~3 days from when the file was created to expire that file, removing it from Azure block storage.
This is a fairly common practice, and I believe the latest version of ASPNet Zero does this with the GDPR collected data, only it uses the local Temp File storage, so it's a single click file download behavior.
My question is - in the Notification message text, is there a way to setup conditional logic for the text & url of the notification? I'm looking at the UserNotificationHelper.ts class in my Angular project, and I see where "text" and "url" are being set.
Has anyone tried to customize this code to conditionally set the "text" or "url"?
Thanks, -Brian
Hi, I have an entity that is built using the RAD tool, and in the code generated AppService, the GetAll function seems to require pagination. I was trying to change the client request to include either a null|empty MaxResultCount value or a MaxResultCount=-1 value to signify ignore pagination.
It looks like within the AspNet Boilerplate framework, the LimitedResultRequestDto
class defines the MaxResultCount property.
Looking at the QueryableExtensions class, it looks like the behavior is hard coded into calling the Take
function and doesn't first check the value of MaxResultCount.
I was thinking of creating a new extension method for ConditionalPageBy
that only called the Take
with MaxResultCount if a value is provided.
The only other option I see is the create a separate method for GetAllWithoutPagination
or something like that and write my own custom AppService method, which I would like to avoid doing.
Before I did this, I wanted see if anyone else had encountered this requirement before, and if so, what their solution was.
Thanks!
Has anyone tried using Swagger to split up their API specification into multiple files?
I have a case where I want to have 1 "private" file for the internal application, and then a 2nd "public" file that exposes only public/anonymous endpoints I have done this before with Swashbuckle annotations & classic .NET WebAPI, but never with ASPNZ or ABP.
thanks!
A question about tenancy identification and domains. Has anyone setup multi-tenancy with identitying each tenant by a unique fully qualified domain, rather than by a subdomain?
I’m building a system where the host would be “app.foo.com”, but then each individual tenant would be “foo.<companyname>.com”. Yes it requires correct dns configuration by each tenants dns, but I was wondering how internally the aspnz framework would handle that, or where I would look to potentially customize that.
thanks, -Brian
i am working on a mobile app that needs to support offline mode and i am currently running into an issue with the Flurl.Http client.
So what happen is if you are online, switch to offline and it works fine. But when you switch online again from offline, the Flur client throws a timeout exeception.
Here is a similar issue that I found: https://github.com/tmenier/Flurl/issues/352
has anyone else seen this before? Should i look to swotch from Flurl to the .net native HttpClient?
Thanks!
Hi,
I am working on a Xamarin mobile app that needs to work offline. However, I am dealing with a configuration issue. Basically it doesn't work with offline. At the start of the app, it downloads the configuration from here /AbpUserConfiguration/GetAll and store it in the cache. This configuration is where all of the server settings are stored, including localizations. I tried to modify the code to not download this endpoint if the offline but everytime the app restart, the cache is cleared out.
Instead of storing this information in the cache, which appears to clear every time the app restarts, is there a way to modify this code to store and retrieve using sqlite so that the app doesn't need to retrieve this configuration information every time the app launches?
My use case is that someone will download information from the server onto the mobile app, and then go out into the field to perform their job, where they are offline. They need to be able to use the mobile app while on the job and offline. Then they will return to their office where they have an internet connection and sync their data back to the server when they are online again.
Thanks, -Brian
Hi, I have started work on a mobile app, and in order to get the app to build in Visual Studio for Mac, I have had to update my NuGet packages. After updating my NuGet packages, I am seeing errors with Plugins.Iconize, and I think the issue has to do with Xam.FormsPlugin.Iconize.
When I look up the package on NuGet (https://www.nuget.org/packages/Xam.FormsPlugin.Iconize/1.5.0.13-beta) , I see the message: "The owner has unlisted this package. This could mean that the package is deprecated or shouldn't be used anymore."
Should I still be using this library, or has this been removed and does this need to be replaced with a different package.
To note, we are using ASPNet Zero v5.5.0, and we have not upgraded to v6.1.0 yet. Is this addressed in a later ASPNet Zero release?
Thanks!
Good afternoon,
I am trying to get started on a mobile project and we are running into an issue with the Xamarin codebase running on Mac OS X. I am running Mac OS X High Sierra with Visual Studio Community for Mac (7.6.10 build 27) and XCode 10.0 (10A255).
Without changing any of the code in the .Mobile.sln solution, when I attempt to compile the .iOS project, I encounter a handful of errors about System.Memory and Microsoft.Extensions.Primitives. I did some investigation on this online and upgraded my NuGet packages, and now I am past that error and I am able to compile the Visual Studio solution.
However, when I attempt to run the .iOS project using the iPhone emulator, an exception occurs at Application line 12:
UIApplication.Main(args, null, "AppDelegate");
At this point I am stuck on how to proceed.
Thank you for any direction you can offer
Hi,
I am looking at the "Step" feature that is available in the Metronic theme. <a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_4/elements_steps.html">http://keenthemes.com/preview/metronic/ ... steps.html</a>
but I cannot seem to get it to work. I don't see any css classes for: .mt-element-step defined within the Angular UI files
do you know if this feature is available?
Thanks!
Hello,
Starting this morning, I am having an issue with the RAD tool. I am running Visual Studio 2017 Community Edition 15.7.4
I am unable to generate any entities using the RAD tool, even a simple "Test" entity. I encounter the following error message: "An error occured. : Unable to load configuration files. Details: Object reference not set to an instance of an object."
I have uninstalled and reinstalled the RAD tool from the Visual Studio Marketplace. I am currently upgrading Visual Studio 2017 to the latest update, 15.7.5.
I am unsure how to proceed, but I need the RAD Tool to work in order to continue developing.
Thanks, -Brian