internal FunctionLoadRequestCollection GetFunctionLoadRequestCollection(IEnumerable <FunctionMetadata> functions, ManagedDependencyOptions managedDependencyOptions) { var functionLoadRequestCollection = new FunctionLoadRequestCollection(); foreach (FunctionMetadata metadata in functions) { var functionLoadRequest = GetFunctionLoadRequest(metadata, managedDependencyOptions); functionLoadRequestCollection.FunctionLoadRequests.Add(functionLoadRequest); } return(functionLoadRequestCollection); }
internal void SendFunctionLoadRequestCollection(IEnumerable <FunctionMetadata> functions, ManagedDependencyOptions managedDependencyOptions) { _functionLoadRequestResponseEvent = _metricsLogger.LatencyEvent(MetricEventNames.FunctionLoadRequestResponse); FunctionLoadRequestCollection functionLoadRequestCollection = GetFunctionLoadRequestCollection(functions, managedDependencyOptions); _workerChannelLogger.LogDebug("Sending FunctionLoadRequestCollection with number of functions:'{count}'", functionLoadRequestCollection.FunctionLoadRequests.Count); // send load requests for the registered functions SendStreamingMessage(new StreamingMessage { FunctionLoadRequestCollection = functionLoadRequestCollection }); }