- Code: Select all
public class RESTAPIPlugin : System.MarshalByRefObject, JiwaFinancials.Jiwa.JiwaApplication.IJiwaRESTAPIPlugin
{
public void Configure(JiwaFinancials.Jiwa.JiwaApplication.Plugin.Plugin Plugin, ServiceStack.ServiceStackHost AppHost, Funq.Container Container, JiwaApplication.Manager JiwaApplicationManager)
{
// How can I Inject the Manager Object in this CustomService?
AppHost.RegisterService<CustomServices>();
AppHost.Routes.Add(typeof(MyDebtorContactGetRequest), "/Debtors/{DebtorID}/MyContacts", "GET", "Retrieves a list of contacts for a debtor.", "");
AppHost.Routes.Add(typeof(MySearchRequest), "/Search/{SearchTerm}", "GET", "Performs a system wide search for a search term using a Jiwa stored procedure", "");
AppHost.Routes.Add(typeof(MyCustomSearchRequest), "/SearchCustom/{SearchTerm}", "GET", "Performs a system wide search for a search term using a stored procedure", "");
}
}
I want to inject the Manager Object in CustomService. How to do that?