/// <summary>Creates service definition that can be registered with a server</summary> /// <param name="serviceImpl">An object implementing the server-side handling logic.</param> public static grpc::ServerServiceDefinition BindService(ApplicationServiceBase serviceImpl) { return(grpc::ServerServiceDefinition.CreateBuilder() .AddMethod(__Method_CreateApplication, serviceImpl.CreateApplication) .AddMethod(__Method_GetApplication, serviceImpl.GetApplication) .AddMethod(__Method_UpdateApplication, serviceImpl.UpdateApplication) .AddMethod(__Method_DeleteApplication, serviceImpl.DeleteApplication) .AddMethod(__Method_ListApplications, serviceImpl.ListApplications).Build()); }
public ApiEngineRunStrategyBase(ApplicationServiceBase appService, AppCrossOriginServiceBase appCrossOriginService, ApiClientServiceBase clientService, ApiClientCustomerHubService customerHubService, ApiClientCustomerServiceBase customerService, ApiClientIPServiceBase clientIPService, ApiServiceBase apiService, ApiSettingServiceBase apiSettingService, IBase64Compression compression, IDebugRequestGetter debugger, IEncryption crypt, IExceptionLogger logger, ITranslation translator, ICacheFactory cacheFactory) { if (appService == null) { throw new ArgumentNullException("appService"); } if (appCrossOriginService == null) { throw new ArgumentNullException("appCrossOriginService"); } if (clientService == null) { throw new ArgumentNullException("clientService"); } if (customerHubService == null) { throw new ArgumentNullException("customerHubService"); } if (customerService == null) { throw new ArgumentNullException("customerService"); } if (clientIPService == null) { throw new ArgumentNullException("clientIPService"); } if (apiService == null) { throw new ArgumentNullException("apiService"); } if (apiSettingService == null) { throw new ArgumentNullException("apiSettingService"); } if (compression == null) { throw new ArgumentNullException("compression"); } if (debugger == null) { throw new ArgumentNullException("debugger"); } if (crypt == null) { throw new ArgumentNullException("crypt"); } if (logger == null) { throw new ArgumentNullException("logger"); } if (translator == null) { throw new ArgumentNullException("translator"); } if (cacheFactory == null) { throw new ArgumentNullException("cacheFactory"); } this.appService = appService; this.appCrossOriginService = appCrossOriginService; this.clientService = clientService; this.customerHubService = customerHubService; this.customerService = customerService; this.clientIPService = clientIPService; this.apiService = apiService; this.compression = compression; this.debugger = debugger; this.crypt = crypt; this.logger = logger; this.translator = translator; this.cacheFactory = cacheFactory; this.apiSettingService = apiSettingService; }
/// <summary> /// Constructor. /// </summary> /// <param name="service"></param> /// <param name="page"></param> /// <param name="staffGroup"></param> public NoteboxQueryContext(ApplicationServiceBase service, SearchResultPage page, StaffGroup staffGroup) { _applicationService = service; _page = page; _staffGroup = staffGroup; }