public void RegisterDemoApp(DocumentsDemoApp app) { DemoAppRegistryEntry entry = new DemoAppRegistryEntry(app); entry.UpdateLastUsageTime(); AppDictionary.AddOrUpdate(app.Id, entry, (appId, oldEntry) => entry); EnsureAppDisposingActivated(); }
public static DocumentsApp GetAppInstance() { if (Context.Items.Contains(AppInstanceContextKey)) return Context.Items[AppInstanceContextKey] as DocumentsDemoApp; DocumentsDemoApp app = null; lock (instanceGetterLocker) { string appId = Context.Session[AppInstanceSessionKey] as string; if (appId != null) app = DemoAppRegistry.GetDemoApp(appId); else { appId = Guid.NewGuid().ToString(); app = new DocumentsDemoApp(appId); app.Initialize(); app.Start(); DemoAppRegistry.RegisterDemoApp(app); Context.Session[AppInstanceSessionKey] = appId; } } Context.Items[AppInstanceContextKey] = app; return app; }
public DemoThumbnailService(DocumentsDemoApp app) : base(app) { }
public DemoImageService(DocumentsDemoApp app) : base(app) { AvatarService = new DemoAvatarService(app); ThumbnailService = new DemoThumbnailService(app); }
public DemoFileSystemService(DocumentsDemoApp app) : base(app) { }
public DemoDocumentService(DocumentsDemoApp app) : base(app) { }
public DemoDataService(DocumentsDemoApp app, DXDocsMVC.Code.DataService srcDataService) : base(app) { SourceDataService = srcDataService; }
public DemoAvatarService(DocumentsDemoApp app) : base(app) { }
public DemoAppRegistryEntry(DocumentsDemoApp app) { DemoApp = app; }