South Africa’s biggest forum. Discuss, discover, and connect with thousands of members.
@Solarion , not sure what you do with the files after upload, but make sure that you separate the upload from any processing. Processing can take long (depending on what you do) and can easily make the upload request time out. I upload the file to Azure file share or blob storage and then drop a message into an Azure queue. This message gets picked up by a Azure queue-triggered function and then does the processing in the background, free from time limits.
This is what my upload looks like on back-end
View attachment 1441399
The request
View attachment 1441403
And the MediaTR handler
View attachment 1441405
Methods:
View attachment 1441407
AzureFileShareFileStore:
View attachment 1441411
Hmm looking at it now, I might need to dispose/using the stream I get from formFile.OpenReadStream
I have some client code to do the upload. Just need to find it
There are also return types for Maybe<A> . This return type shows that a method returns something of type A or nothing (void)Interesting. Now I'm curious. Have to experiment with this.
![]()
GitHub - amantinband/error-or: A simple, fluent discriminated union of an error or a result.
A simple, fluent discriminated union of an error or a result. - amantinband/error-orgithub.com
Interesting. Now I'm curious. Have to experiment with this.
![]()
GitHub - amantinband/error-or: A simple, fluent discriminated union of an error or a result.
A simple, fluent discriminated union of an error or a result. - amantinband/error-orgithub.com
Every mediator query or command we create returns an ErrorOr<T>. This is great because then you must handle both the success and error cases. Far superior to exceptions.
I have used LanguageExt, and it’s Either type, as well as OneOf, but prefer the semantics of ErrorOr for what we wanted - return a result, or return error(s) of some category.
Option/Maybe is also an excellent construct to use that is easy to understand.
This video is now getting up to this level as I see he uses ErrorOr, Record and a couple of other things I need to get up to speed with <After this festive break of course> but I have one small tiny question. He places in contracts in a separate class. Is there a specific reason for this? The only one I can think of is to perhaps Nuget package this.
![]()
GitHub - amantinband/buber-breakfast: A REST API which supports Creating, Reading, Updating and Deleting breakfasts
A REST API which supports Creating, Reading, Updating and Deleting breakfasts - amantinband/buber-breakfastgithub.com
dotnet new install RealmDigital.Architecture
➜ dotnet new realm-architecture -o [CLIENT.PROJECT_NAME] // replace, including the square brackets, with whatever you want.
The template "The Realm Architecture" was created successfully.


holidays are for messing around and learning@_kabal_ This is hardcore, thanks kabal. I think I'm going to actually just take that break and come back next year. I'm tired and if I start on this I'm going to go down this rabbit hole. This is awesome stuff ty.
holidays are for messing around and learning
enjoy it though, and have a lekka rest