Beispiel #1
0
        public T Init(int appId, string contentType, Guid itemGuid, string field, bool usePortalRoot, ILog parentLog)

        {
            Log.LinkTo(parentLog);
            var context = appId > 0 ? _ctxResolver.BlockOrApp(appId) : _ctxResolver.AppNameRouteBlock(null);
            var logCall = Log.Call <T>($"app: {context.AppState.Show()}, type: {contentType}, itemGuid: {itemGuid}, field: {field}, portalRoot: {usePortalRoot}");

            AdamContext.Init(context, contentType, field, itemGuid, usePortalRoot, Log);
            return(logCall(null, this as T));
        }
 public LoginController()
 {
     db = new AdamContext();
 }
Beispiel #3
0
 public AdamItemDtoMaker <TFolderId, TFileId> Init(AdamContext adamContext)
 {
     AdamContext = adamContext;
     return(this);
 }