GetSession() public méthode

Get a session.
public GetSession ( ) : ISession
Résultat ISession
        protected override void Given()
        {
            var intBackingStore = new BerkeleyBackingStore(new DefaultBerkeleyBackingStoreEnvironment(TempDir));
            var registrar = new Registrar<BerkeleyBackingStore>(intBackingStore);
            registrar.PerformRegistration(
                context =>
                    {
                        context.Graph<GraphAffectedByNewIndex>();
                        context.Index(new ExistingIndex());
                    });
            registrar.ApplyRegistration();
            var intRegistry = registrar.Registry;
            var intSessFactory = new SessionFactory(intRegistry);

            using(var session = intSessFactory.GetSession())
            {
                session.Endure(new GraphAffectedByNewIndex { Text = "TheGraph"});
            }

            intBackingStore.Close();
        }