public static void Call <T>(this JobHost host, string methodName)
 {
     host.Call(typeof(T).GetMethod(methodName));
 }
 public static void Call <T>(this JobHost host, string methodName, object arguments)
 {
     host.Call(typeof(T).GetMethod(methodName), arguments);
 }
 public static Task CallAsync <T>(this JobHost host, string methodName)
 {
     return(host.CallAsync(typeof(T).GetMethod(methodName)));
 }
 public static Task CallAsync <T>(this JobHost host, string methodName, object arguments)
 {
     return(host.CallAsync(typeof(T).GetMethod(methodName), arguments));
 }
示例#5
0
 public void Initialize(JobHost host)
 {
 }
示例#6
0
 public static IJobHostMetadataProvider CreateMetadataProvider(this JobHost host)
 {
     return(host.Services.GetService <IJobHostMetadataProvider>());
 }