public static AsEventSource ( this database ) : IEventSource | ||
database | this | |
return | IEventSource |
public static IEventSource AsEventSource(this IDatabase database)
{
if (database == null)
return null;
if (database is IEventSource)
return (IEventSource) database;
return new EventSource(database.System.AsEventSource());
}