Пример #1
0
        private ImmutableList <IEntity> GetInStream()
        {
            var callLog = Log.Call <ImmutableList <IEntity> >();

            // Check if in not connected, in which case we must find it yourself
            if (!In.ContainsKey(Eav.Constants.DefaultStreamName))
            {
                var showDrafts = Block?.Context?.UserMayEdit ?? false;
                Log.Add($"In not attached, will auto-attach with showDrafts: {showDrafts}");
                var publishing = DataSourceFactory.GetPublishing(this, showDrafts, Configuration.LookUpEngine);
                Attach(publishing);
            }

            return(callLog(null, In[Eav.Constants.DefaultStreamName].List.ToImmutableList()));
        }