using System;
using System.Threading.Tasks;
using Microsoft.Owin;
using Owin;
using Microsoft.AspNet.SignalR;
using BeachOrder.Hub;

[assembly: OwinStartup(typeof(BeachOrder.Startup))]

namespace BeachOrder
{
    public class Startup
    {
        public void Configuration(IAppBuilder app)
        {
            // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=316888
            //var hubConfiguration = new HubConfiguration();
            //hubConfiguration.EnableDetailedErrors = true;
            //hubConfiguration.EnableJavaScriptProxies = true;
           // GlobalHost.DependencyResolver.Register(typeof(Microsoft.AspNet.SignalR.IUserIdProvider), () => new ConnectionFactory() );
            app.MapSignalR("/signalr", new HubConfiguration());
            app.MapHubs();
        }
    }
}
