public void Init(ITypesProvider typesProvider) { IHandlerRegistry handlerRegistry = typesProvider.Resolve <IHandlerRegistry>(); handlerRegistry.RegisterHandler <GetDeviceDefinitionsQuery, GetDeviceDefinitionsQueryHandler>(); handlerRegistry.RegisterHandler <UpdateDeviceDefinitionCommand, UpdateDeviceDefinitionCommandHandler>(); handlerRegistry.RegisterHandler <GetStoreSnapshotQuery, GetStoreSnapshotQueryHandler>(); handlerRegistry.RegisterHandler <UploadSnapshotCommand, UploadSnapshotCommandHandler>(); }