Base solution for your next web application

Activities of "miroslav.engi"

Hello,

Both are UTC that's why it is confusing me.

Again I was sending date from input which was 12/25/2019. And on the backend I got 12/24/2019.

Also printed out Client side timezone support, that seems ok.

Client side, date is set as moment documentation suggests.

I tried even in another browser cleared all data from browser.

So with another test I selected 09/27/2019. But in db I get this:

Anyone?

When I select date on datepicker, from the frontend Angular it is sent correctly, but on the backend it is day before. The clock provider is set to Clock.Provider = ClockProviders.Utc;

Both dates are wrong on the backend (day before).

Should I configure something else ?

Using Asp.Core + Angular. Asp Zero V6.9

Works thanks.

Hi,

In WebHostModule in Postinitialize I call:

RecurringJob.AddOrUpdate<ILabelAppService>("generateLabelInfo", t => t.GenerateLabelInfo(), Cron.Daily);

and I get Exception like Hangfire is not initialized.

System.InvalidOperationException
  HResult=0x80131509
**  Message=JobStorage.Current property value has not been initialized. You must set it before using Hangfire Client or Server API.**
  Source=Hangfire.Core
  StackTrace:
   at Hangfire.JobStorage.get_Current()
   at Hangfire.RecurringJob.<>c.<.cctor>b__20_0()
   at System.Lazy`1.ViaFactory(LazyThreadSafetyMode mode)
   at System.Lazy`1.ExecutionAndPublication(LazyHelper executionAndPublication, Boolean useDefaultConstructor)
   at System.Lazy`1.CreateValue()
   at Hangfire.RecurringJob.AddOrUpdate(Expression`1 methodCall, String cronExpression, TimeZoneInfo timeZone, String queue)
   at PacapimePortal.Web.Startup.PacapimePortalWebHostModule.PostInitialize() in C:\Projects\PacapimePortal\aspnet-core\src\PacapimePortal.Web.Host\Startup\PacapimePortalWebHostModule.cs:line 72
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Abp.AbpBootstrapper.Initialize()

I enabled:

//Uncomment this line to use Hangfire instead of default background job manager (remember also to uncomment related lines in Startup.cs file(s)).
Configuration.BackgroundJobs.UseHangfire();

in WebCoreModule.cs

Also in WebConsts public static bool HangfireDashboardEnabled = true;

P.S.

When I put in PostInitialize timeout like:

    var timeToWait = 3000; //ms
    Task.Run(async () =>
    {
        await Task.Delay(timeToWait);
        RecurringJob.AddOrUpdate<ILabelAppService>("generateLabelInfo", t => t.GenerateLabelInfo(), Cron.Daily);
    });

than it works but this is not a solution.

Am I missing something ?

Using version 6.9 of Asp.Zero.

Hi,

I am not sure what was the issue, but I deleted the database, ran migration, cleared browser cache, created tenant and set timezone to Central European and now works fine.

The Clock.Provider = ClockProviders.Utc; is set to UTC.

Hi,

The parameter sent to API is deliveryDate: "2019-08-30T00:00:00.000Z" and the date I selected in datepicker is 2019-08-31.

The clock provider is currently set on the backend. Clock.Provider = ClockProviders.Utc; in the Startup.cs of Web.Host project in public IServiceProvider ConfigureServices(IServiceCollection services) method.

Hi,

On the form I select for example 14-07-2019 in datepicker and the date sent to API is 13-07-2019. Do I need to configure something on the Angular side (timezone, utc ?) ? I am using ASP.ZERO Asp Core + Angular 7 Version 6.9.

Thanks in advance.

Anyone ?

Hi,

I need to communicate with other systems in network which can send me data through Websocket. I supose SignalR implemented in Asp Zero backend is good for that ?

I am looking at your documentation but can't see any implementation how to receive message which is send to Websocket from outside. Looking at the documentation https://aspnetboilerplate.com/Pages/Documents/SignalR-AspNetCore-Integration#connection-establishment can't find it.

I created new Hub, and created a route. I can connect to the WS://localhost ... but how can I get the message ? As you can see in the image it is connected to the Hub. But how can I retrieve that message in backend ?

So my goal is to be able to get simple message through websocket and work with it. Currently I need it without user authentication.

Showing 1 to 10 of 16 entries