Thanks to Halil, the problem was solved:
[DependsOn(typeof(REPDataModule))]
public class MyConsoleModule : AbpModule
{
public override void Initialize()
{
IocManager.RegisterAssemblyByConvention(Assembly.GetExecutingAssembly());
}
}
public class Program
{
public static void Main()
{
using(var bootstrapper = new AbpBootstrapper())
{
bootstrapper.Initialize();
var config = new JobHostConfiguration()
{
JobActivator = new JobActivator(bootstrapper.IocManager.IocContainer)
};
if (config.IsDevelopment)
{
config.UseDevelopmentSettings();
}
JobHost host = new JobHost(config);
host.RunAndBlock();
}
}
}
Thank you, solved. The problem was related with business logic of the application and had nothing to do with ABP or SignalR.
That should fix that issue:
.ui-grid-render-container-body {
position: relative;
}
.ui-grid-cell-contents div.btn-group {
position: absolute !important;
}
<cite>ismcagdas: </cite>
Hi, 1 ) is there any other code after app.MapSignalR(); in your Startup.cs's configure method ?
No.
<cite>ismcagdas: </cite>
- Is there any other tab/browser window opened with the same account. Because for your version (Abp 0.8.4), the notification will be sent to only last opened browser window/tab.
No.
<cite>ismcagdas: </cite> Hi, Which version of ABP do you use ? I remember a similar issue in the one of previous versions.
0.8.4.0
<cite>hikalkan: </cite> Have you registered to the "App.SimpleMessage" notification from the current user? <a class="postlink" href="http://www.aspnetboilerplate.com/Pages/Documents/Notification-System#subscribe-to-notifications">http://www.aspnetboilerplate.com/Pages/ ... ifications</a>
Yes, I had.
await _notificationSubscriptionManager.IsSubscribedAsync(recepient.Id, "App.SimpleMessage");
returns true.
So the default route's that came with aspNetBoilerPlate are
routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } );
routes.MapRoute( name: "Default", url: "{controller}/{action}/{id}", defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }, namespaces: new[] { "REP.Regional.Controllers" } );
When I add shortlink at the end and it will never trigger routes.MapRoute( name: "ShortLinks", url: "{name}", defaults: new { controller = "ShortLink", action = "Index", name = UrlParameter.Optional } );
If i add short link route in the middle of the route's it will loop indefinitely.
My ShortLinkController code is basic public ActionResult Index(string name) { return Redirect("/application#/listing/123"); }
I did try that, and my route's doesn't work right. The only way I got around this was by adding a delimeter /sl/ in the url. However my requirement dictates that I cannot have that key delimeter. The only thing I know is that the application#/listing can be pre-defined in the route.
So the default route's that came with aspNetBoilerPlate are
routes.MapHttpRoute( name: "DefaultApi", routeTemplate: "api/{controller}/{id}", defaults: new { id = RouteParameter.Optional } );
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional },
namespaces: new[] { "REP.Regional.Controllers" }
);
When I add shortlink at the end and it will never trigger routes.MapRoute( name: "ShortLinks", url: "{name}", defaults: new { controller = "ShortLink", action = "Index", name = UrlParameter.Optional } );
If i add short link route in the middle of the route's it will loop indefinitely.
My ShortLinkController code is basic public ActionResult Index(string name) { if (!string.IsNullOrEmpty(name)) { ListResultOutput<ShortLinkListDto> shortLinks = AsyncHelper.RunSync(() => _shortlinkAppService.GetShortLinks(new GetShortLinkInput() { TenantFilter = 1, RegionFilter = 2004 })); ShortLinkListDto shortLink = shortLinks.Items.Where(e => e.Link.Trim().ToLower() == name.ToLower().Trim()).FirstOrDefault(); if (shortLink != null) { return Redirect(shortLink.FullLink); //this will redirect to /application#/listing/123 } } return Redirect("/"); }