public OrleansRequesterMiddleware(OcelotRequestDelegate next,
                                   IClusterClientBuilder clusterClientBuilder,
                                   IGrainReference grainReference,
                                   IGrainMethodInvoker grainInvoker,
                                   IRouteValuesBuilder routeValuesBuilder,
                                   IOptions <OrleansRequesterConfiguration> config,
                                   IOrleansAuthorisation authorisation,
                                   IOcelotLoggerFactory loggerFactory)
     : base(loggerFactory.CreateLogger <OrleansRequesterMiddleware>())
 {
     this._clusterClientBuilder = clusterClientBuilder;
     this._grainReference       = grainReference;
     this._grainInvoker         = grainInvoker;
     this._routeValuesBuilder   = routeValuesBuilder;
     this._logger        = loggerFactory.CreateLogger <OrleansRequesterMiddleware>();
     this._config        = config?.Value;
     this._authorisation = authorisation;
     this._next          = next;
 }
 public DefaultGrainFactoryProxy(IClusterClientBuilder clusterClientBuilder)
 {
     this._clusterClientBuilder = clusterClientBuilder;
 }