/// <summary>
 /// Добавить метод
 /// </summary>
 /// <param name="func"></param>
 /// <param name="opts"></param>
 /// <returns></returns>
 public JsWorkerServiceMethodBuilder <TService> AddMethodViaAction(Action <TService> func, MethodDocsOptions opts)
 {
     return(AddMethod(opts, () => JsServiceFuncBuilder.GetAction(func, opts)));
 }
 /// <summary>
 /// Добавить метод
 /// </summary>
 /// <typeparam name="T1"></typeparam>
 /// <typeparam name="T2"></typeparam>
 /// <typeparam name="TResult"></typeparam>
 /// <param name="func"></param>
 /// <param name="opts"></param>
 /// <returns></returns>
 public JsWorkerServiceMethodBuilder <TService> AddMethodViaTaskWithResult <T1, T2, TResult>(Func <TService, T1, T2, Task <TResult> > func, MethodDocsOptions opts)
 {
     return(AddMethod(opts, () => JsServiceFuncBuilder.GetTask(func, opts)));
 }
 /// <summary>
 /// Добавить метод
 /// </summary>
 /// <typeparam name="T1"></typeparam>
 /// <typeparam name="T2"></typeparam>
 /// <typeparam name="T3"></typeparam>
 /// <typeparam name="TResult"></typeparam>
 /// <param name="func"></param>
 /// <param name="opts"></param>
 /// <returns></returns>
 public JsWorkerServiceMethodBuilder <TService> AddMethodViaFunction <T1, T2, T3, TResult>(Func <TService, T1, T2, T3, TResult> func, MethodDocsOptions opts)
 {
     return(AddMethod(opts, () => JsServiceFuncBuilder.GetFunc(func, opts)));
 }
 /// <summary>
 /// Добавить метод
 /// </summary>
 /// <param name="func"></param>
 /// <param name="opts"></param>
 /// <returns></returns>
 public JsWorkerServiceMethodBuilder <TService> AddMethodViaTask(Func <TService, Task> func, MethodDocsOptions opts)
 {
     return(AddMethod(opts, () => JsServiceFuncBuilder.GetTask(func, opts)));
 }