Beispiel #1
0
        public void Init(IResolver resolver)
        {
            resolver.AddRepositoriesFor <File, ulong, FileDbContext>();
            resolver.AddRepositoriesFor <FileContent, ulong, FileDbContext>();

            resolver.RegisterType <IFileContentProvider, DriveFileProvider>();

            resolver.RegisterType <IConfigProvider <DriveFileProviderOption>, AppSettingsJsonConfigProvider <DriveFileProviderOption> >();
        }
Beispiel #2
0
 public void Init(IResolver resolver)
 {
     resolver.AddRepositoriesFor <User, ulong, UsersDbContext>();
 }