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