CQRS.Tests.CQRS.EventSourcing.EventRefactoring.Migrations.EventStreamMutatorTests.ClearEventstoreCache C# (CSharp) Method

ClearEventstoreCache() protected method

protected ClearEventstoreCache ( WindsorContainer container ) : void
container WindsorContainer
return void
        protected void ClearEventstoreCache(WindsorContainer container)
        {
            if(EventStoreType == typeof(SqlServerEventStore))
            {
                container.ExecuteUnitOfWorkInIsolatedScope(() => ((SqlServerEventStore)container.Resolve<IEventStore>()).ClearCache());
            }
        }