/// <summary> /// Initializes a new instance of the <see cref="ApiHandlerActor"/> class. /// </summary> /// <param name="apiProvider"> /// The api provider. /// </param> public ApiHandlerActor(ApiProvider apiProvider) { this.apiProvider = apiProvider; this.Receive <MutationApiRequest>(m => this.HandleMutation(m)); this.Receive <QueryApiRequest>(m => this.HandleQuery(m)); foreach (var generationError in apiProvider.GenerationErrors) { Context.GetLogger().Error( "{Type} generationError error: {GenerationError}", apiProvider.GetType().Name, generationError); } }