public RequestProcessor(JsonSerializer serializer, IServiceFactory serviceFactory, IServiceCatalog services, IServiceInvoker serviceInvoker) { this.serializer = serializer; this.serviceFactory = serviceFactory; this.services = services; this.serviceInvoker = serviceInvoker; }
protected override void Register(IServiceCatalog catalog) { if (catalog is null) { throw new ArgumentNullException(nameof(catalog)); } catalog.Register(Id, SmtpClientServiceCreator); catalog.Register(Alias, SmtpClientServiceCreator); }
protected abstract void Register(IServiceCatalog catalog);
public IRequestProcessor CreateProcessor(IServiceCatalog services, IHalibutServerOptions options) { return new RequestProcessor(options.Serializer, options.ServiceFactory, services, options.ServiceInvoker); }