Hi,
I have the following requirements:
a. User submit job from website b. Queue manager (application that we built) read job from db c. Worker service run background job and read job ID from queue manager
Do you have any suggestion about our requirements? And how to customize the backgroundJobManager to read outside DB and we can run job that reads from queue manager.
Thanks
Hi,
I have this unit test:
public class WindsorRegistration_Tests : AppTestBase
{
private readonly ITestOutputHelper output;
public WindsorRegistration_Tests(ITestOutputHelper output)
{
this.output = output;
}
[Fact]
public void Should_Not_Have_Any_Misconfigured_Components()
{
// From http://blog.usermaatre.co.uk/programming/2014/11/27/testing-dependency-registrations-with-castle-windsor/
var container = LocalIocManager.IocContainer;
var key = SubSystemConstants.DiagnosticsKey;
var host = (IDiagnosticsHost)container.Kernel.GetSubSystem(key);
var diagnostic = host.GetDiagnostic<IPotentiallyMisconfiguredComponentsDiagnostic>();
var problems = diagnostic.Inspect();
if (problems != null && problems.Any())
{
var message = new StringBuilder();
message.AppendFormat("Misconfigured components ({0})\r\n", problems.Count());
//Iterate over the problems, writing messages to the console
foreach (IExposeDependencyInfo problem in problems)
{
var inspector = new DependencyInspector(message);
problem.ObtainDependencyDetails(inspector);
}
output.WriteLine(message.ToString());
}
// No misconfigured components
problems.Count().ShouldBe(0);
}
}
Then I get the following output message:
'Abp.Events.Bus.Handlers.Internals.ActionEventHandler`1' is waiting for the following dependencies:
- Service 'Action`1' which was not registered.
'Abp.Localization.Sources.Resource.ResourceFileLocalizationSource' is waiting for the following dependencies:
- Parameter 'name' which was not provided. Did you forget to set the dependency?
- Service 'System.Resources.ResourceManager' which was not registered.
'Abp.Localization.Sources.Xml.XmlLocalizationSource' is waiting for the following dependencies:
- Parameter 'name' which was not provided. Did you forget to set the dependency?
- Parameter 'directoryPath' which was not provided. Did you forget to set the dependency?
'Abp.Localization.MultiTenantLocalizationDictionary' is waiting for the following dependencies:
- Parameter 'sourceName' which was not provided. Did you forget to set the dependency?
- Service 'Abp.Localization.Dictionaries.ILocalizationDictionary' which was not registered.
'Abp.Runtime.Caching.Memory.AbpMemoryCache' is waiting for the following dependencies:
- Parameter 'name' which was not provided. Did you forget to set the dependency?
So, how to resolve these dependencies? I think this test should be included in aspnetzero.
I have created the issue here <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/issues/193">https://github.com/aspnetzero/aspnet-zero/issues/193</a>
For example I have this DTO:
public class SampleDTO
{
[Display("SomeValue")]
public string SomeValue { get; set; }
}
How to achieve localization in display attribute? I know display attribute has resource parameter, but how to connect it in ABP implementation?
Hi,
I have this one in AppNavigationProvider:
).AddItem(new MenuItemDefinition(
PageNames.App.Tenant.Test,
L("Test"),
url: "test.dashboard",
icon: "icon-notebook"
)
And it generates this code:
<a ui-sref="test.dashboard" ng-if="!menuItem.items.length" class="ng-scope" href="#/test/dashboard">
<i class="icon-notebook"></i>
<span class="title ng-binding">Test</span>
</a>
I want to add id attribute to <a> tag, like this:
<a ui-sref="test.dashboard" ng-if="!menuItem.items.length" class="ng-scope" href="#/test/dashboard" id="testId">
<i class="icon-notebook"></i>
<span class="title ng-binding">Test</span>
</a>
I have tried it with customData in MenuItemDefinition, but I didn't get any result. So, how to achieve that?