private InvocationsList CreateInvocationsList(Context context)
 {
     return(new InvocationsList
     {
         Invocations =
         {
             context.GetConnectedApps().Select(connection => new InvocationRef
             {
                 Target = ConvertToProto(connection),
                 AppInfo = GetAppInfo(connection.ApplicationId),
             })
         }
     });
 }
Beispiel #2
0
 private static ContextDto ConvertContextToProto(Context context, UniqueId appInstanceId) => new ContextDto
 {
     Id   = context.Id,
     Own  = context.OwnerAppInstanceId == appInstanceId,
     Kind = context.Kind
 };