Exemplo n.º 1
0
        public async Task StartSession()
        {
            var name = Guid.NewGuid().ToString();

            if (curSessionId != -1)
            {
                StopSession();
            }
            var id = await PostgresExport.StartSession(name);

            curSessionId = id;
        }
Exemplo n.º 2
0
        public async Task StartSession(string name = session_name)
        {
            if (name == null)
            {
                name = Guid.NewGuid().ToString();
            }
            if (curSessionId != -1)
            {
                StopSession();
            }
            int id = await PostgresExport.StartSession(name);

            curSessionId = id;
        }
Exemplo n.º 3
0
        public async Task StartSession(string name = session_name)
        {
            if (name == null)
            {
                name = Guid.NewGuid().ToString();
            }
            if (curSessionId != -1)
            {
                StopSession();                     // makes sure that there is only one session at a time.
            }
            int id = await PostgresExport.StartSession(name);

            curSessionId = id;
        }