Subscribe: Architecture
http://forums.asp.net/rss.aspx?ForumID=16&Mode=0
Added By: Feedage Forager Feedage Grade B rated
Language: English
Tags:
app  application  architecture  business  core  create  customer  data  models  net  new  project  specific  user  view  web 
Rate this Feed
Rate this feedRate this feedRate this feedRate this feedRate this feed
Rate this feed 1 starRate this feed 2 starRate this feed 3 starRate this feed 4 starRate this feed 5 star

Comments (0)

Feed Details and Statistics Feed Statistics
Preview: Architecture

Architecture



Discuss and debate ASP.NET application designs.



Last Build Date: Wed, 15 Nov 2017 04:08:02 -0800

 



Solution and technology for between clients and servers

2017-11-15T04:08:02.64-08:00

I'm starting to build a web application and need to handle a large amount of work with databases between clients and servers.
So what is the solution to this problem and what technology to use to get the best performance.
Please advice me, thank you.




Retrieving the COM class factory for component with CLSID {XXXX} failed due to the following error: 80040154

2017-08-18T11:26:58.98-07:00

Retrieving the COM class factory for component with CLSID {BEDCB92D-5926-4D3A-8E73-B301DB169B50} failed due to the following error: 80040154




writing to disk in background

2017-10-29T10:21:04.607-07:00

My app needs to write data to disk on a regular basis (say every 5 minutes). I currently try to do this with a System.timers.timer that is started in the Application_Start event of the Global.asax, but it doesn't seem to work all the time. Is there a better way using a long-running background worker process that does [thread sleep/do the write] in a loop? If so, is the .net BackgroundWorker class OK or should I use a different class?




ASP.NET VNC Viewer

2017-10-17T16:41:03.28-07:00

Hi,

I would like to ask about possibilities I have in ASP.NET to create a web app, that could show (and of course - control) remote computer's desktop using VNC.

I have read a little bit and I believe that Websockets (?) is something I'm looking for? I'm even looking at SignalR, which should be even easier.

Am I going the right direction here?

Thanks.




Need to suggest architecture for new project.

2017-09-23T13:08:28.367-07:00

Hi All,

I would like to suggest best architecture for my upcoming project. 

It is web based application support for mobile also.

DB is mainframe.

UI is web application.

Require more security.

Insurance domain.

1 lake customer and increase also.

Could you suggest which architecture best suite for this requirement.




about video

2017-09-15T06:48:57.04-07:00

in my site I want to let customer click video, so how to do:

1). how to store my video, in database or others?

2). how let customer browser my video smoothy?

Thank you very much.




What is the design pattern behind linq query ?

2017-08-29T05:54:00.31-07:00

What is the design pattern behind linq Query.

Student a = dbContext.Students().where().select().first()

output of students() is a Iqueryable, which is passed as input to Where(), whose ouput is again Iquerable, again passed as input to Select(), whose ouput is passed as input to first.

I need a similar functionality, where there would be multiple actions/methods, and actions/methods can be given in any order.

I checked out Chain of responsibility. But i do not want to set successor for each time I create a handler object. 




Multi-tenant architeture

2017-08-04T06:51:30.963-07:00

Hello folks

I am in the situation where I need to create following type of architecture for already hosted and developed application.

There are many enterprise level customers that are associated with application which are having loads of data. I want to keep data of every customer in a different database. Eg Customer 1 will have its data in DB1 and customer2 will have its data in DB2. Consequently data will be isolated from each other's. At the same time, I want to store the information of each customer's database (Connection String ) in a new db which will act as a metadata so that I can pull the information on request to decide which database should be opened and application can run accordingly. E.g If there is request from User1 and its database in DB1 then this info should come from metadata database.

Also could you please let me know how can I implement caching for this process as metadata should not be checked on every request (may be)?

Feel free to ask any query.

Kindly assist.




Using Parameters in ActionResult Methods

2017-08-03T19:51:54.833-07:00

 Hi,

I'm building an application that displays customers billing data and I would like some advice on the best way to pass parameters to Views or Models without allowing the user to load data they aren't supposed to see.

For example, suppose I created an action result as follows:

public ActionResult InvoiceDetail(int InvoiceNumber)
        {
            return View(etc....);
        }

The user could easily manipulate the InvoiceNumber passed in the URL to load a different invoice that doesn't belong to them.  I currently use Identities to authenticate the user so I could store the Invoice Number in the user cookie and load the detail based on the cookie value but, are there other/better ways of handling it?

Thanks




Splitting a mvc project into multiple projects

2017-07-13T10:19:37.243-07:00

Hey,

I´m currently developing an asp.net mvc app, started with 1 solution and 1 project in it. As far as I know, using this approach does not lead to problems with adding new modules, new functions etc, is that correct?

Plan is to create one working base, that - later - is used as a base for each customer ("copy" of that base for further development for a specific customer). Each customer has a need for different functions, which could be added to that project mentioned above, is that correct too?

Now a new employee suggested to split up that project into 3 projects, named web, logic and core. Adding an api, for example, would mean to create a new project on the same "level" as web, logic and core are.

Hope to explain it correctly, so that you know what I mean.

Would there be any advantage when following his suggestion?

I just read this article: http://programmingwithmosh.com/csharp/should-you-split-your-asp-net-mvc-project-into-multiple-projects/ and I think there is no advantage, right?

Thank you in advance for your help!




ASP.NET Core API/MVC solution architecture for Real-World application

2017-04-19T19:48:33.027-07:00

I know architecture questions are mostly opinion based, but I would appreciate it if you guys can glance over the structure of my project and let me know any downsides.


TestProject.Api
The web api for the application. This application references all 3 class libraries (Core, Business, Data). The StartUp.cs file will specify the TestProjectDbContext and also configure dependency injection services: ICustomerRepository, CustomerRepository - ICustomerManager, CustomerManager. This is so we can inject these into the Api controllers at run time.

TestProject.Core
This class library contains no references. It contains the Domain Models, i.e. Customer.cs. Additionally, all of the interfaces for the Repositories (Data) and Manager (Business) classes, i.e. ICustomerManager, ICustomerRepository.

TestProject.Business
This class library contains a bunch of classes with the suffix Manager. For example CustomerManager. The plan is to have this project never call the Data layer or know anything about it. Each one of the classes in here will contain all of the complex business logic. The plan is for the Api to make calls to the repository to get the params needed to call the business functions. For example, _orderRepository.GetOrderById(id), then call _orderManager.CalculateOrderTotal(order). This class library will only reference the Core project so it knows about the Domain Models and can implement the Interfaces.

TestProject.Data
This class library will have entity framework installed and will contain TestProjDbContext and a folder with all of the repositories. For example: CustomerRepository, OrderRepository, etc... It will also contain the ef Migrations folder. This class library will only reference the Core project so it knows about the Domain Models and can implement the Interfaces.

Here is a different view of it:

TestProj.Business
     CustomerManager.cs
TestProj.Core
     -Interfaces
          -Business
               ICustomerManager.cs
          -Data
               -Repositores
                    ICustomerRepository.cs
          -Models
               Customer.cs
TestProj.Data
     ArchProjDbContext.cs
     -Migrations
     -Repositories
          CustomerRepository.cs

I would like some thoughts/opinions on this architecture. The goal here is to make it so Testing will be easy and if another application were to try and hook into this it will be easy. I believe there is a benefit to having all of the Interfaces and Models in the Core project rather than the Business interfaces in the business layer and the Repository interfaces in the data layer.




How to assign numbers to image upload

2017-07-24T09:38:38.207-07:00

My apps has a Fileupload control to upload doc. I am thinking to assign a unique consecutive ID as file name to it for identification instead of user upload file name as users may use same file name in some case. What is a working approach to assign this ID and file name?

My plan is to get max ID from db storing DocIDs and add 1 to it on aspx on label and save name as this ID when user click "upload".
However what if user1 loads the page first but upload the file later than user2 who loads the same upload page later?




Which Type of Architecture we need

2017-06-17T04:57:43.407-07:00

Dear Friends,

I'm confused about my new application architecture so kindly suggest arch for below requirements.

  • I have to combine many different APIs into one APIs and make speed to call all APIs parallel and maintain speed to send consolidate data to customer.
  • In upcoming future new APIs will come to again we have to make kind of plugin and add to our Core system and work like same.
  • Problem is how to make core system to run all APIs in parallel mode.

guys as per above information this is plugin base but core system of this Arch how i build.

Thanks

Dharmesh




Which type of work flow asp.net web application and windows application do have?

2017-07-14T09:31:21.997-07:00

Hi All,

I got a question in an interview with 4 options.

Question:- What type of work flow asp.net application have

1. Down to up

2. Up to down

3. Pipeline

4. Water fall

I put the answer pipeline.

Am I right? I guess no.

What is the right answer?




Image Downloads and .NET Functions to Use

2017-07-12T20:54:06.973-07:00

We have a web server/file server which sends 1GB worth of 3000+ (in number) .PNG files from a web interface over the internet to another server at a different physical location.  This is further amplified by the fact that the set of files now to be sent to 15,000 such locations sometimes at the same time. Bandwidth at the receiving end is also an issue. 

How can I make sure I get 100% success in sending these images?

Would 'PushStreamContent' be my best bet to use in this case?, can I take advantage of BITS through .NET since all of our servers are Windows based, would this be a better solution than PushStreamContent? 

Thank you in advance.




Download attachments from outlook

2017-06-29T16:08:27.487-07:00

Need to download attachments from outlook through asp.net code.

Mails are on cloud server.




OOP Confusion

2017-06-23T05:37:53.52-07:00

say I have an object Client in the business layer. Then I have ClientRepository with Retrieve and Save methods.
Finally, I have another data layer project in the same solution whereas for now I store connection object.
My question is the following:
Where I open the connection and create command and everything? In each of the ClientRepository methods OR I create an additional kinda DA helper so then i only assign the SP name in the method and get the data?




How to use Repository Pattern in MVC with View specific Models?

2017-06-19T16:21:24.597-07:00

I'm trying to implement the repository and unit of work patterns in an existing MVC project. I already have classes which I use to create different models specific to particular Views. These classes communitcate to the database using Entity Framework, and a using() block to call Dispose.

I've seen many many examples of using Repo/UoW patterns directly in Controllers.  But I have custom View specific Models (which I manage with classes like SalesOrderViewModelManager) in many cases which help select and populate models for the Views. I don't know how to manage view specific models like this or if this is a normal thing to do, as I'm kind of new to alot these frameworks and patterns.

What I am trying to figure out is where now and to implement the Repo/UoW patterns. A ViewModelManager will have a method like:

public SalesAgreementVM GetAgreement(int CustomerId, int OrderId)

This and all other methods communitcate with the database via Entity Framework with a using() block in the method itself.

I don't implement all CRUD, in fact, this app pretty much only reads from the DB.  But now that must change, as it needs to update the DB entities now.

When I recieve a POST from a user wanting to edit the data, I'm using the controller to do model binding back into the View specific Model that I used to create the view the client browser uses to edit the data.  But this model does not match any specific repo, as it was designed for the View.

My instincts are telling me I need some sort of layer between my View specific models and my Repos to implement CRUD operations. But I just don't know much about this.  I learn fast, but I'm still very junior.




Xamarin mobile app and ASP.Net Core backend architecture

2017-05-12T14:28:15.867-07:00

Hello, 

 I was approached by a customer who wants to develop a mobile app for iOS and Android.

The goal of the app is to allow the localization of commercial partners offering services. Each provider must describe the proposed services (photos, description, prices) and may also offer promotions. The end user will be able to consult the list of providers and it's services, book a service and then rate the provider.

In a first time, the customer would like a first version that is close to a POC: the app must be stable and include all the expected features.

As my customer knows Xamarin, and as I have already used it on small projects, I think that Xamarin.Forms is a good choice for the first version of this app.

But for backend, it's not as clear for my customer: he does not really know what he needs...

I have identified 3 needs:

  • the APIs that will be used by the mobile app
  • a "backoffice" that will be used by my customer's company, to manage the providers
  • a "middleoffice" that will be used by the providers, to manage their offers, and receive the users bookings

My client would have a preference for a Symfony / Angular architecture, as he has already used this on other projects. For my part, I would rather use a full .Net architecture: Xamarin + ASP.Net Core + Azure.

What do you think? Are there any plugins or frameworks that I could use for such a project? (like Serinity)




How to inhert from multiple place..I know .net wont support multiple inheritace...but is there any way around

2017-05-24T17:13:10.557-07:00

Lets say I have below class

public class CallMe

{

public int PhoneNumber {get;set;}

}

public class MailMe

{

public string Email {get;set;}

}

Now

I want to create a class with has all the properites of Callme and MailMe

like

public class Communicate :Callme,MailMe

{

public string Name {get;set;}

}

I dont want CallMe and MailMe as property for Communicate...

How to do this