public Task <ContextToInvocationsList> GetAllLinkedInvocations(Empty request, MethodCallContext callContext) { return(Task.Factory.StartNew(() => { var allContexts = _contextsSet.GetAllContexts(); return new ContextToInvocationsList { Contexts = { allContexts.Select(context => new ContextToInvocations { Context = ConvertContextToProto(context, callContext.ConsumerApplicationInstanceId), Invocations = CreateInvocationsList(context), }) } }; })); }
public Task <ContextToInvocationsList> GetAllLinkedInvocations(Empty request, MethodCallContext callContext) { return(Task.Factory.StartNew(() => { var allContexts = _contextsSet.GetAllContexts(); return new ContextToInvocationsList { Contexts = { allContexts.Select(context => new ContextToInvocations { Context = new ContextDto{ Id = context.Id }, Invocations = CreateInvocationsList(context), }) } }; })); }