private const DocuViewareSessionStateMode DOCUVIEWARE_SESSION_STATE_MODE = DocuViewareSessionStateMode.InProc; //Set DocuViewareSessionStateMode.File is STICKY_SESSION is False.

        protected void Application_Start()
        {
            GlobalConfiguration.Configure(WebApiConfig.Register);
            DocuViewareManager.SetupConfiguration(STICKY_SESSION, DOCUVIEWARE_SESSION_STATE_MODE, GetCacheDirectory());
            DocuViewareLicensing.RegisterKEY("0488386897882708674261864"); //Unlocking DocuVieware. Please insert your demo or commercial license key here.
            DocuViewareEventsHandler.NewDocumentLoaded += NewDocumentLoadedHandler;
            DocuViewareEventsHandler.CustomAction      += Dispatcher;
        }
        void Application_Start(object sender, EventArgs e)
        {
            // Code that runs on application startup
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            DocuViewareManager.SetupConfiguration(true, DocuViewareSessionStateMode.InProc, HttpRuntime.AppDomainAppPath + "\\Cache");
            DocuViewareLicensing.RegisterKEY("0435375251735586356441524");
        }
示例#3
0
        protected void Application_Start()
        {
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);
            BundleConfig.RegisterBundles(BundleTable.Bundles);

            DocuViewareManager.SetupConfiguration(STICKY_SESSION, DOCUVIEWARE_SESSION_STATE_MODE, GetCacheDirectory());
            DocuViewareLicensing.RegisterKEY(""); //Unlocking DocuVieware. Please set your demo or commercial license key here.
            DocuViewareEventsHandler.NewDocumentLoaded += NewDocumentLoadedHandler;
            DocuViewareEventsHandler.CustomAction      += CustomActionDispatcher;
        }
示例#4
0
        // This method gets called by the runtime. Use this method to add services to the container.
        // For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddControllersWithViews();
            services.AddRazorPages();
            var assemblyPath = Assembly.GetExecutingAssembly().Location;
            var path         = System.IO.Path.GetDirectoryName(assemblyPath);

            DocuViewareLicensing.RegisterKEY("your key");
            DocuViewareManager.SetupConfiguration(true, DocuViewareSessionStateMode.InProc,
                                                  path + "\\Cache",
                                                  "https://localhost:4023/", "api/DocuViewareREST");
        }
示例#5
0
        public Startup(IConfiguration configuration)
        {
            Configuration = configuration;
            DocuViewareLicensing.RegisterKEY("0449326832734035850501424");
            string cacheDir       = Path.Combine(Directory.GetCurrentDirectory(), "Cache");
            string appUri         = "https://localhost:44313";
            string docuViewareApi = "api/DocuVieware";

            DocuViewareManager.SetupConfiguration(true,
                                                  DocuViewareSessionStateMode.InProc,
                                                  cacheDir, appUri, docuViewareApi);
        }
示例#6
0
        protected void Application_Start()
        {
            try
            {
                Assembly.Load("GdPicture.NET.14.WEB.DocuVieware");
            }
            catch (System.IO.FileNotFoundException)
            {
                throw new System.IO.FileNotFoundException(" The system cannot find the DocuVieware assembly. Please set the Copy Local Property of the GdPicture.NET.14.WEB.DocuVieware reference to true. More information: https://msdn.microsoft.com/en-us/library/t1zz5y8c(v=vs.100).aspx");
            }

            DocuViewareManager.SetupConfiguration(STICKY_SESSION, DOCUVIEWARE_SESSION_STATE_MODE, GetCacheDirectory());
            AreaRegistration.RegisterAllAreas();
            FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
            RouteConfig.RegisterRoutes(RouteTable.Routes);

            DocuViewareLicensing.RegisterKEY("0448394466038176759411124"); //Unlocking DocuVieware. Please set your demo or commercial license key here.
            DocuViewareEventsHandler.NewDocumentLoaded += NewDocumentLoadedHandler;
            DocuViewareEventsHandler.CustomAction      += CustomActionDispatcher;
        }