Ejemplo n.º 1
0
 public static PlayerEngine Configure(this PlayerEngine playerEngine)
 {
     if (playerEngine != null)
     {
         playerEngine.ConfigureInternal();
     }
     return playerEngine;
 }
        public static Configure RavenDBSagaPersister(this Configure config, string url)
        {
            if (!Sagas.Impl.Configure.SagasWereFound)
                return config;

            IDocumentStore documentStore = new DocumentStore { Url = url };

            return config.ConfigureInternal(documentStore);
        }
        public static Configure EmbeddedRavenDBSagaPersister(this Configure config, string dataDirectory)
        {
            if (!Sagas.Impl.Configure.SagasWereFound)
                return config;

            IDocumentStore documentStore = new EmbeddableDocumentStore
                                               {
                                                   DataDirectory = dataDirectory,
                                               };

            return config.ConfigureInternal(documentStore);
        }