示例#1
0
        public override void AfterCommit(string key)
        {
            if (key.StartsWith(RavenDatabasesPrefix, StringComparison.OrdinalIgnoreCase) == false)
            {
                return;
            }

            TenantDatabaseModified.Invoke(this, new TenantDatabaseModified.Event
            {
                Database = Database,
                Name     = key.Substring(RavenDatabasesPrefix.Length)
            });
        }
示例#2
0
        public override void AfterCommit(string key, Raven.Json.Linq.RavenJObject document, Raven.Json.Linq.RavenJObject metadata, Guid etag)
        {
            if (key.StartsWith(RavenDatabasesPrefix, StringComparison.InvariantCultureIgnoreCase) == false)
            {
                return;
            }

            TenantDatabaseModified.Invoke(this, new TenantDatabaseModified.Event
            {
                Database = Database,
                Name     = key.Substring(RavenDatabasesPrefix.Length)
            });
        }