Hangfire: Any plan for supporting asp.net core 1.0.0?

Created on 26 Jul 2016  ·  14Comments  ·  Source: HangfireIO/Hangfire

Do you have any plan or roadmap for supporting asp.net core 1.0.0?

question

All 14 comments

Now I can run the application on linux? I saw your explain, but I use free version. I use sql server connection string, ubuntu server 14.04 and i have some err:

Unhandled Exception: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.NullReferenceException: Object reference not set to an instance of an object.
at Hangfire.Server.BackgroundProcessingServer.GetGloballyUniqueServerId()
at Hangfire.Server.BackgroundProcessingServer..ctor(JobStorage storage, IEnumerable1 processes, IDictionary2 properties, BackgroundProcessingServerOptions options)
at Hangfire.BackgroundJobServer..ctor(BackgroundJobServerOptions options, JobStorage storage, IEnumerable1 additionalProcesses) at Hangfire.HangfireApplicationBuilderExtensions.UseHangfireServer(IApplicationBuilder app, BackgroundJobServerOptions options, IEnumerable1 additionalProcesses, JobStorage storage)
at NC.web.Startup.Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
--- End of inner exception stack trace ---
at System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor)
at System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments)
at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
at Microsoft.AspNetCore.Hosting.Internal.ConfigureBuilder.Invoke(Object instance, IApplicationBuilder builder)
at Microsoft.AspNetCore.Hosting.Internal.WebHost.BuildApplication()
at Microsoft.AspNetCore.Hosting.WebHostBuilder.Build()
at NC.web.Program.Main(String[] args

Its my code:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;
using Hangfire;

namespace NC.web
{
public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddHangfire(configuration => configuration
.UseSqlServerStorage("my string"));
}

    public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory)
    {
        app.UseHangfireDashboard();
        app.UseHangfireServer();

        if (env.IsDevelopment())
        {
            app.UseDeveloperExceptionPage();
        }

        app.Run(async (context) =>
        {
            await context.Response.WriteAsync("Hello World!");
        });
    }
}

}

Yes, for example, http://coredemo.hangfire.io/ is running on Ubuntu 14.04 hosted on my favorite DigitalOcean. Unit tests are also run against OS X also on each commit. The problem is that only Hangfire.SqlServer supports .NET Core yet, but I have interesting plans regarding Redis, just keep in touch!

Have any idea? How can I run it, without redis? I will be grateful) Redis is not supported in free version of Hangfire =)

Meanwhile you can contribute to Hangfire.Postgres or Hangfire.MySql to support netcore :wink:

What Hangfire.Core version are you using? In 1.6.0 the exception above was fixed. Again, ASP.NET Core integration is supported http://hangfire.io/blog/2016/07/16/hangfire-1.6.0.html#aspnet-core-integration.

1.6.0-build-02111

Just update to 1.6.0, it was released on July, 15.

вторник, 26 июля 2016 г. пользователь Alex.R написал:

1.6.0-build-02111


You are receiving this because you commented.
Reply to this email directly, view it on GitHub
https://github.com/HangfireIO/Hangfire/issues/624#issuecomment-235304121,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ABB1vnEKzuR93DgBv3BadLMOVUtrmpftks5qZicXgaJpZM4JU01X
.

Kind regards, Sergey Odinokov,
Founder/developer @ http://hangfire.io
Contacts:
Email: [email protected]
Skype: odinserj

Thank you very much!

FWIW, there is a preview version of SQL Server for Linux.

https://www.microsoft.com/en-us/cloud-platform/sql-server-on-linux

Wow, it's amazing, everything is going to Linux, I've recently seen even PowerShell on Linux. However, I think much fewer people will use SQL Server on Linux, except that enterprises.

SQL Server will be interesting, I think they are going after Oracle share there. Speaking of PowerShell on Linux, we also have Bash on Windows plus other Linux user-mode tools. Pigs are definitely flying and hell is dropping below zero!

Was this page helpful?
0 / 5 - 0 ratings