Base solution for your next web application

Activities of "digitalcontrol"

Answer

We were investigating more what are our options but did not find an appropriate solution yet. We have page where we are listing users posts, each post has details page where are some comments (simple ticketing system, similar to your support forum) and we want to open Post listing page as well as Post details page to visitors who are not logged in (same as your support forum page) where these visitors can see the content but can not post or comment before they log in. An additional feature is that we need this configurable which means that these pages will be publicly accessible only if we set it to public under settings (In DB, let's say tenant configuration).

Question

We would like to open some pages publicly depending on our business logic condition. So if some property is true particular pages will be publicly accessible. Is there a recommended way of implementing such functionality? We are aware of public portal but that is not what we need.

Answer

@ismcagdas I did but did not find anything useful, maybe you will something.

Answer

Hi @ismcagdas<span class="colour" style="color: rgb(33, 37, 41);">  Nope, we did not add or did anything cache-related.</span>

Answer

The problem is because we have to run multiple instances of same solution on the server and each instance can't just reserve 600MB. Do you have some improvement suggestions to decrease the memory load, like disabling some features (like chat, etc). or using caching at some point? On this link you can download memory dump file (976 MB): https://drive.google.com/file/d/1PSeM7DEyG7jeUEVbafiy-VicXkvCl0nE/view?usp=sharing

Question

As soon as we start application (IIS web server) .NET Core Host service use at least 500MB after few users start using application it easily goes over 1GB, after some time it realese it but it never go below 500-600 MB. I can send you memory dump file. Not sure what other info can be relevant. Do you have any expirence with these situations and is there any recommendation?

It works! Thank you.

AddJsonOptions method in Startup.cs doesn't work. We tried a few options but none of them worked. How can we set SerializerSettings.DateFormatString?

First option:

services.AddMvc(options =>
{
	options.Filters.Add(new CorsAuthorizationFilterFactory(DefaultCorsPolicyName));
}).SetCompatibilityVersion(CompatibilityVersion.Version_2_1)
.AddJsonOptions(options =>
{
	options.SerializerSettings.DateFormatString = "dd-MMM-yyyy";
});

Second option from link https://github.com/aspnetboilerplate/aspnetboilerplate/issues/2764 :

services.PostConfigure<MvcJsonOptions>(options =>
{
	foreach (var convert in options.SerializerSettings.Converters)
	{
		if (convert is AbpDateTimeConverter)
		{
			var tmpConverter = convert as AbpDateTimeConverter;
			tmpConverter.DateTimeFormat = "dd-MMM-yyyy";
		}
	}
});
return services.AddAbp<RIMIKSXWebHostModule>(options =>
{
	...
});

Third option:

services.Configure<MvcJsonOptions>(options => { options.SerializerSettings.DateFormatString = "dd-MMM-yyyy"; });
return services.AddAbp<RIMIKSXWebHostModule>(options =>
{
	...
});

I added for each method in AppService interface Http atribute, still the same.

I did that but only for one method. Should I add to every method?

Showing 11 to 20 of 58 entries