public static string GetTypeScripterPoco(this IEnumerable <Type> types) { var scripter = new Scripter(); foreach (var type in types) { scripter.AddType(type); } return(scripter.ToString()); }
private static Scripter ConfigureTypes(Scripter scripter) { var ignoredTypes = new HashSet <Type> { typeof(IEquatable <>), typeof(IComparable <>), typeof(IComparable), typeof(IConvertible), typeof(IDisposable), typeof(IFormattable), typeof(Exception) }; scripter.UsingTypeFilter(type => ignoredTypes.Contains(type) == false); scripter.UsingTypeReader(new TypeReaderWithIgnoreMethods()); scripter.AddType(typeof(CollectionStatistics)); scripter.AddType(typeof(BatchRequestParser.CommandData)); scripter.AddType(typeof(TransactionMode)); // name validation scripter.AddType(typeof(StudioTasksHandler.ItemType)); scripter.AddType(typeof(NameValidation)); // database scripter.AddType(typeof(DatabasePutResult)); scripter.AddType(typeof(DatabaseRecord)); scripter.AddType(typeof(DatabaseStatistics)); scripter.AddType(typeof(DetailedDatabaseStatistics)); // restore database from cloud backup scripter.AddType(typeof(S3Settings)); // footer scripter.AddType(typeof(FooterStatistics)); scripter.AddType(typeof(IndexDefinition)); scripter.AddType(typeof(PutIndexResult)); scripter.AddType(typeof(IndexQuery)); scripter.AddType(typeof(QueryTimings)); scripter.AddType(typeof(DynamicQueryToIndexMatcher.Explanation)); // attachments scripter.AddType(typeof(AttachmentName)); scripter.AddType(typeof(AttachmentDetails)); // notifications scripter.AddType(typeof(AlertRaised)); scripter.AddType(typeof(NotificationUpdated)); scripter.AddType(typeof(OperationChanged)); scripter.AddType(typeof(BulkOperationResult.OperationDetails)); scripter.AddType(typeof(DatabaseChanged)); scripter.AddType(typeof(ClusterTopologyChanged)); scripter.AddType(typeof(DatabaseStatsChanged)); scripter.AddType(typeof(PerformanceHint)); scripter.AddType(typeof(PagingPerformanceDetails)); scripter.AddType(typeof(HugeDocumentsDetails)); scripter.AddType(typeof(HugeDocumentInfo)); scripter.AddType(typeof(RequestLatencyDetail)); // subscriptions scripter.AddType(typeof(SubscriptionConnectionStats)); scripter.AddType(typeof(SubscriptionWorkerOptions)); scripter.AddType(typeof(SubscriptionTryout)); // changes scripter.AddType(typeof(OperationStatusChange)); scripter.AddType(typeof(DeterminateProgress)); scripter.AddType(typeof(IndeterminateProgress)); scripter.AddType(typeof(IndeterminateProgressCount)); scripter.AddType(typeof(BulkOperationResult)); scripter.AddType(typeof(ReplayTxOperationResult)); scripter.AddType(typeof(BulkInsertProgress)); scripter.AddType(typeof(OperationExceptionResult)); scripter.AddType(typeof(DocumentChange)); scripter.AddType(typeof(IndexChange)); scripter.AddType(typeof(Operations.Operation)); scripter.AddType(typeof(NewVersionAvailableDetails)); scripter.AddType(typeof(MessageDetails)); scripter.AddType(typeof(ExceptionDetails)); // alerts scripter.AddType(typeof(EtlErrorsDetails)); scripter.AddType(typeof(SlowSqlDetails)); scripter.AddType(typeof(SlowWritesDetails)); // indexes scripter.AddType(typeof(IndexDefinition)); scripter.AddType(typeof(PutIndexResult)); scripter.AddType(typeof(IndexStats)); scripter.AddType(typeof(IndexingStatus)); scripter.AddType(typeof(IndexPerformanceStats)); scripter.AddType(typeof(IndexDefinition)); scripter.AddType(typeof(TermsQueryResult)); scripter.AddType(typeof(IndexProgress)); scripter.AddType(typeof(IndexesProgress)); scripter.AddType(typeof(IndexErrors)); scripter.AddType(typeof(StudioTasksHandler.FormattedExpression)); // cluster scripter.AddType(typeof(ClusterTopology)); scripter.AddType(typeof(ClusterObserverDecisions)); scripter.AddType(typeof(NodeInfo)); // query scripter.AddType(typeof(QueryResult <,>)); scripter.AddType(typeof(PutResult)); // patch scripter.AddType(typeof(PatchRequest)); scripter.AddType(typeof(PatchResult)); scripter.AddType(typeof(PatchDebugActions)); scripter.AddType(typeof(Raven.Client.ServerWide.Operations.DatabasesInfo)); // smuggler scripter.AddType(typeof(DatabaseSmugglerImportOptions)); scripter.AddType(typeof(DatabaseSmugglerOptionsServerSide)); scripter.AddType(typeof(SmugglerResult)); scripter.AddType(typeof(SingleDatabaseMigrationConfiguration)); scripter.AddType(typeof(OfflineMigrationResult)); scripter.AddType(typeof(OfflineMigrationProgress)); scripter.AddType(typeof(BuildInfoWithResourceNames)); scripter.AddType(typeof(MigratedServerUrls)); scripter.AddType(typeof(MigrationConfiguration)); scripter.AddType(typeof(CsvImportOptions)); // revisions scripter.AddType(typeof(RevisionsConfiguration)); scripter.AddType(typeof(RevertRevisionsRequest)); scripter.AddType(typeof(RevertResult)); scripter.AddType(typeof(EnforceConfigurationResult)); scripter.AddType(typeof(DocumentRevisionsCount)); // server dashboard scripter.AddType(typeof(DashboardNotificationType)); scripter.AddType(typeof(TrafficWatch)); scripter.AddType(typeof(Raven.Server.Dashboard.DatabasesInfo)); scripter.AddType(typeof(IndexingSpeed)); scripter.AddType(typeof(MachineResources)); scripter.AddType(typeof(DrivesUsage)); // expiration scripter.AddType(typeof(ExpirationConfiguration)); // refresh scripter.AddType(typeof(RefreshConfiguration)); // storage report scripter.AddType(typeof(StorageReport)); scripter.AddType(typeof(DetailedStorageReport)); // map reduce visualizer scripter.AddType(typeof(ReduceTree)); // license scripter.AddType(typeof(License)); scripter.AddType(typeof(UserRegistrationInfo)); scripter.AddType(typeof(LicenseStatus)); scripter.AddType(typeof(LicenseLimitWarning)); scripter.AddType(typeof(LicenseSupportInfo)); scripter.AddType(typeof(LicenseRenewalResult)); scripter.AddType(typeof(LicenseConfiguration)); // feedback form scripter.AddType(typeof(FeedbackForm)); // io metrics stats scripter.AddType(typeof(IOMetricsHistoryStats)); scripter.AddType(typeof(IOMetricsRecentStats)); scripter.AddType(typeof(IOMetricsRecentStatsAdditionalTypes)); scripter.AddType(typeof(IOMetricsFileStats)); scripter.AddType(typeof(IOMetricsEnvironment)); scripter.AddType(typeof(IOMetricsResponse)); scripter.AddType(typeof(FileStatus)); scripter.AddType(typeof(IoMetrics.MeterType)); // replication stats scripter.AddType(typeof(LiveReplicationPerformanceCollector.OutgoingPerformanceStats)); scripter.AddType(typeof(LiveReplicationPerformanceCollector.IncomingPerformanceStats)); // conflicts scripter.AddType(typeof(GetConflictsResult)); scripter.AddType(typeof(ConflictResolverAdvisor.MergeResult)); scripter.AddType(typeof(ConflictSolver)); // ongoing tasks - common scripter.AddType(typeof(OngoingTasksResult)); scripter.AddType(typeof(OngoingTask)); scripter.AddType(typeof(OngoingTaskType)); scripter.AddType(typeof(OngoingTaskState)); scripter.AddType(typeof(OngoingTaskConnectionStatus)); scripter.AddType(typeof(NodeId)); scripter.AddType(typeof(ModifyOngoingTaskResult)); scripter.AddType(typeof(Transformation)); // ongoing tasks - replication scripter.AddType(typeof(OngoingTaskReplication)); scripter.AddType(typeof(ExternalReplication)); // ongoing tasks - pull replication scripter.AddType(typeof(PullReplicationDefinition)); scripter.AddType(typeof(PullReplicationDefinitionAndCurrentConnections)); scripter.AddType(typeof(PullReplicationAsSink)); scripter.AddType(typeof(OngoingTaskPullReplicationAsSink)); scripter.AddType(typeof(OngoingTaskPullReplicationAsHub)); scripter.AddType(typeof(PullReplicationHandler.PullReplicationCertificate)); // ongoing tasks - backup scripter.AddType(typeof(OngoingTaskBackup)); scripter.AddType(typeof(PeriodicBackupConfiguration)); scripter.AddType(typeof(PeriodicBackupConnectionType)); scripter.AddType(typeof(RestoreBackupConfiguration)); scripter.AddType(typeof(RestoreFromS3Configuration)); scripter.AddType(typeof(RestoreFromAzureConfiguration)); scripter.AddType(typeof(RestoreFromGoogleCloudConfiguration)); scripter.AddType(typeof(RestoreType)); scripter.AddType(typeof(RestorePoints)); scripter.AddType(typeof(RestoreProgress)); scripter.AddType(typeof(StudioTasksHandler.NextCronExpressionOccurrence)); scripter.AddType(typeof(OfflineMigrationConfiguration)); scripter.AddType(typeof(BackupProgress)); scripter.AddType(typeof(StartBackupOperationResult)); // ongoing tasks - subscription scripter.AddType(typeof(OngoingTaskSubscription)); scripter.AddType(typeof(SubscriptionTryout)); scripter.AddType(typeof(DocumentWithException)); scripter.AddType(typeof(SubscriptionStateWithNodeDetails)); scripter.AddType(typeof(SubscriptionConnectionDetails)); scripter.AddType(typeof(ChangeVectorEntry)); scripter.AddType(typeof(SubscriptionCreationOptions)); scripter.AddType(typeof(Constants.Documents.SubscriptionChangeVectorSpecialStates)); scripter.AddType(typeof(SubscriptionOpeningStrategy)); // ongoing tasks - ravenDB ETL scripter.AddType(typeof(EtlTaskProgress)); scripter.AddType(typeof(OngoingTaskRavenEtlDetails)); scripter.AddType(typeof(OngoingTaskRavenEtlListView)); scripter.AddType(typeof(RavenEtlConfiguration)); scripter.AddType(typeof(EtlProcessStatistics)); scripter.AddType(typeof(TestRavenEtlScript)); scripter.AddType(typeof(RavenEtlTestScriptResult)); scripter.AddType(typeof(EtlType)); scripter.AddType(typeof(EtlTaskPerformanceStats)); // ongoing tasks - SQL ETL scripter.AddType(typeof(OngoingTaskSqlEtlDetails)); scripter.AddType(typeof(OngoingTaskSqlEtlListView)); scripter.AddType(typeof(SqlEtlConfiguration)); scripter.AddType(typeof(TestSqlEtlScript)); scripter.AddType(typeof(SqlEtlTable)); scripter.AddType(typeof(SqlEtlTestScriptResult)); // connection strings scripter.AddType(typeof(ConnectionString)); scripter.AddType(typeof(RavenConnectionString)); scripter.AddType(typeof(SqlConnectionString)); scripter.AddType(typeof(ConnectionStringType)); scripter.AddType(typeof(GetConnectionStringsResult)); // server-wide backup scripter.AddType(typeof(ServerWideBackupConfigurationResults)); scripter.AddType(typeof(PutServerWideBackupConfigurationResponse)); // certificates scripter.AddType(typeof(CertificateDefinition)); // admin logs scripter.AddType(typeof(LogMode)); scripter.AddType(typeof(SetLogsConfigurationOperation.Parameters)); // adminJs console scripter.AddType(typeof(AdminJsScript)); scripter.AddType(typeof(TrafficWatchChange)); scripter.AddType(typeof(NodeConnectionTestResult)); scripter.AddType(typeof(ClientCertificateGenerationResult)); // request with POST parameters scripter.AddType(typeof(DeleteDatabasesOperation.Parameters)); scripter.AddType(typeof(ToggleDatabasesStateOperation.Parameters)); scripter.AddType(typeof(SetIndexesLockOperation.Parameters)); scripter.AddType(typeof(SetIndexesPriorityOperation.Parameters)); scripter.AddType(typeof(AdminRevisionsHandler.Parameters)); scripter.AddType(typeof(ReorderDatabaseMembersOperation.Parameters)); scripter.AddType(typeof(LicenseLimitException)); scripter.AddType(typeof(CompactSettings)); scripter.AddType(typeof(CompactionResult)); scripter.AddType(typeof(CompactionProgress)); // server setup scripter.AddType(typeof(UnsecuredSetupInfo)); scripter.AddType(typeof(SetupInfo)); scripter.AddType(typeof(ContinueSetupInfo)); scripter.AddType(typeof(ClaimDomainInfo)); scripter.AddType(typeof(SetupProgressAndResult)); scripter.AddType(typeof(UserDomainsAndLicenseInfo)); scripter.AddType(typeof(UserDomainsWithIps)); scripter.AddType(typeof(SetupMode)); scripter.AddType(typeof(ConfigurationNodeInfo)); scripter.AddType(typeof(SetupParameters)); // compare exchange scripter.AddType(typeof(CompareExchangeHandler.CompareExchangeListItem)); scripter.AddType(typeof(CompareExchangeResult <object>)); scripter.AddType(typeof(CompareExchangeValue <object>)); // debug scripter.AddType(typeof(ThreadsInfo)); scripter.AddType(typeof(MemoryDebugHandler.MemoryInfo)); // counters scripter.AddType(typeof(CounterBatch)); scripter.AddType(typeof(CountersDetail)); scripter.AddType(typeof(CounterDetail)); scripter.AddType(typeof(CounterOperationType)); // sql migration scripter.AddType(typeof(DatabaseSchema)); scripter.AddType(typeof(MigrationProvider)); scripter.AddType(typeof(MigrationRequest)); scripter.AddType(typeof(MigrationResult)); scripter.AddType(typeof(MigrationProgress)); scripter.AddType(typeof(MigrationTestRequest)); // document size details scripter.AddType(typeof(DocumentSizeDetails)); // version info scripter.AddType(typeof(LatestVersionCheck.VersionInfo)); // studio configuration scripter.AddType(typeof(ServerWideStudioConfiguration)); scripter.AddType(typeof(StudioConfiguration)); scripter.AddType(typeof(StudioTasksHandler.OfflineMigrationValidation)); scripter.AddType(typeof(StartTransactionsRecordingOperation.Parameters)); scripter.AddType(typeof(TransactionsRecordingHandler.RecordingDetails)); scripter.AddType(typeof(FolderPathOptions)); scripter.AddType(typeof(DataDirectoryResult)); scripter.AddType(typeof(LiveRunningQueriesCollector.ExecutingQueryCollection)); scripter.AddType(typeof(SorterDefinition)); return(scripter); }
public override void VisitNamedType(INamedTypeSymbol symbol) { _scripter.AddType(symbol); }
private static Scripter ConfigureTypes(Scripter scripter) { var ignoredTypes = new HashSet <Type> { typeof(IEquatable <>), typeof(IComparable <>), typeof(IComparable), typeof(IConvertible), typeof(IDisposable), typeof(IFormattable), typeof(Exception) }; scripter.UsingTypeFilter(type => ignoredTypes.Contains(type) == false); scripter.UsingTypeReader(new TypeReaderWithIgnoreMethods()); scripter.AddType(typeof(CollectionStatistics)); scripter.AddType(typeof(BatchRequestParser.CommandData)); scripter.AddType(typeof(DatabasePutResult)); scripter.AddType(typeof(DatabaseRecord)); scripter.AddType(typeof(DatabaseStatistics)); scripter.AddType(typeof(FooterStatistics)); scripter.AddType(typeof(IndexDefinition)); scripter.AddType(typeof(PutIndexResult)); // attachments scripter.AddType(typeof(AttachmentName)); scripter.AddType(typeof(AttachmentDetails)); // notifications scripter.AddType(typeof(AlertRaised)); scripter.AddType(typeof(NotificationUpdated)); scripter.AddType(typeof(OperationChanged)); scripter.AddType(typeof(DatabaseChanged)); scripter.AddType(typeof(ClusterTopologyChanged)); scripter.AddType(typeof(DatabaseStatsChanged)); scripter.AddType(typeof(PerformanceHint)); scripter.AddType(typeof(PagingPerformanceDetails)); scripter.AddType(typeof(RequestLatencyDetail)); // subscriptions scripter.AddType(typeof(SubscriptionConnectionStats)); scripter.AddType(typeof(SubscriptionWorkerOptions)); scripter.AddType(typeof(SubscriptionTryout)); // changes scripter.AddType(typeof(OperationStatusChange)); scripter.AddType(typeof(DeterminateProgress)); scripter.AddType(typeof(IndeterminateProgress)); scripter.AddType(typeof(BulkOperationResult)); scripter.AddType(typeof(BulkInsertProgress)); scripter.AddType(typeof(OperationExceptionResult)); scripter.AddType(typeof(DocumentChange)); scripter.AddType(typeof(IndexChange)); scripter.AddType(typeof(Operations.Operation)); scripter.AddType(typeof(NewVersionAvailableDetails)); scripter.AddType(typeof(MessageDetails)); scripter.AddType(typeof(ExceptionDetails)); // indexes scripter.AddType(typeof(IndexStats)); scripter.AddType(typeof(IndexingStatus)); scripter.AddType(typeof(IndexPerformanceStats)); scripter.AddType(typeof(IndexDefinition)); scripter.AddType(typeof(TermsQueryResult)); scripter.AddType(typeof(IndexProgress)); scripter.AddType(typeof(IndexesProgress)); scripter.AddType(typeof(IndexErrors)); scripter.AddType(typeof(StudioTasksHandler.FormatedExpression)); // cluster scripter.AddType(typeof(ClusterTopology)); scripter.AddType(typeof(ClusterObserverDecisions)); // query scripter.AddType(typeof(QueryResult <,>)); scripter.AddType(typeof(PutResult)); // patch scripter.AddType(typeof(PatchRequest)); scripter.AddType(typeof(PatchResult)); scripter.AddType(typeof(PatchDebugActions)); scripter.AddType(typeof(Raven.Client.ServerWide.Operations.DatabasesInfo)); // smuggler scripter.AddType(typeof(DatabaseSmugglerImportOptions)); scripter.AddType(typeof(DatabaseSmugglerOptionsServerSide)); scripter.AddType(typeof(SmugglerResult)); scripter.AddType(typeof(SingleDatabaseMigrationConfiguration)); scripter.AddType(typeof(OfflineMigrationResult)); scripter.AddType(typeof(OfflineMigrationProgress)); scripter.AddType(typeof(BuildInfoWithResourceNames)); scripter.AddType(typeof(MigratedServerUrls)); // revisions scripter.AddType(typeof(RevisionsConfiguration)); // server dashboard scripter.AddType(typeof(DashboardNotificationType)); scripter.AddType(typeof(TrafficWatch)); scripter.AddType(typeof(Raven.Server.Dashboard.DatabasesInfo)); scripter.AddType(typeof(IndexingSpeed)); scripter.AddType(typeof(MachineResources)); scripter.AddType(typeof(DrivesUsage)); // expiration scripter.AddType(typeof(ExpirationConfiguration)); // storage report scripter.AddType(typeof(StorageReport)); scripter.AddType(typeof(DetailedStorageReport)); // map reduce visualizer scripter.AddType(typeof(ReduceTree)); // license scripter.AddType(typeof(License)); scripter.AddType(typeof(UserRegistrationInfo)); scripter.AddType(typeof(LicenseStatus)); scripter.AddType(typeof(LicenseLimitWarning)); scripter.AddType(typeof(LicenseSupportInfo)); // feedback form scripter.AddType(typeof(FeedbackForm)); // io metrics stats scripter.AddType(typeof(IOMetricsHistoryStats)); scripter.AddType(typeof(IOMetricsRecentStats)); scripter.AddType(typeof(IOMetricsRecentStatsAdditionalTypes)); scripter.AddType(typeof(IOMetricsFileStats)); scripter.AddType(typeof(IOMetricsEnvironment)); scripter.AddType(typeof(IOMetricsResponse)); scripter.AddType(typeof(FileStatus)); scripter.AddType(typeof(IoMetrics.MeterType)); // replication stats scripter.AddType(typeof(LiveReplicationPerformanceCollector.OutgoingPerformanceStats)); scripter.AddType(typeof(LiveReplicationPerformanceCollector.IncomingPerformanceStats)); // conflicts scripter.AddType(typeof(GetConflictsResult)); scripter.AddType(typeof(ConflictResolverAdvisor.MergeResult)); scripter.AddType(typeof(ConflictSolver)); // ongoing tasks - common scripter.AddType(typeof(OngoingTasksResult)); scripter.AddType(typeof(OngoingTask)); scripter.AddType(typeof(OngoingTaskType)); scripter.AddType(typeof(OngoingTaskState)); scripter.AddType(typeof(OngoingTaskConnectionStatus)); scripter.AddType(typeof(NodeId)); scripter.AddType(typeof(ModifyOngoingTaskResult)); scripter.AddType(typeof(Transformation)); // ongoing tasks - replication scripter.AddType(typeof(OngoingTaskReplication)); scripter.AddType(typeof(ExternalReplication)); // ongoing tasks - backup scripter.AddType(typeof(OngoingTaskBackup)); scripter.AddType(typeof(PeriodicBackupConfiguration)); scripter.AddType(typeof(PeriodicBackupTestConnectionType)); scripter.AddType(typeof(RestoreBackupConfiguration)); scripter.AddType(typeof(RestorePoints)); scripter.AddType(typeof(RestoreProgress)); scripter.AddType(typeof(NextBackupOccurrence)); scripter.AddType(typeof(OfflineMigrationConfiguration)); // ongoing tasks - subscription scripter.AddType(typeof(OngoingTaskSubscription)); scripter.AddType(typeof(SubscriptionTryout)); scripter.AddType(typeof(DocumentWithException)); scripter.AddType(typeof(SubscriptionStateWithNodeDetails)); scripter.AddType(typeof(SubscriptionConnectionDetails)); scripter.AddType(typeof(ChangeVectorEntry)); scripter.AddType(typeof(SubscriptionCreationOptions)); scripter.AddType(typeof(Constants.Documents.SubscriptionChangeVectorSpecialStates)); scripter.AddType(typeof(SubscriptionOpeningStrategy)); // ongoing tasks - ravenDB ETL scripter.AddType(typeof(OngoingTaskRavenEtlDetails)); scripter.AddType(typeof(OngoingTaskRavenEtlListView)); scripter.AddType(typeof(RavenEtlConfiguration)); scripter.AddType(typeof(EtlProcessStatistics)); scripter.AddType(typeof(EtlType)); // ongoing tasks - SQL ETL scripter.AddType(typeof(OngoingTaskSqlEtlDetails)); scripter.AddType(typeof(OngoingTaskSqlEtlListView)); scripter.AddType(typeof(SqlEtlConfiguration)); scripter.AddType(typeof(SimulateSqlEtl)); scripter.AddType(typeof(SqlEtlTable)); // connection strings scripter.AddType(typeof(ConnectionString)); scripter.AddType(typeof(RavenConnectionString)); scripter.AddType(typeof(SqlConnectionString)); scripter.AddType(typeof(ConnectionStringType)); scripter.AddType(typeof(GetConnectionStringsResult)); // certificates scripter.AddType(typeof(CertificateDefinition)); // adminJs console scripter.AddType(typeof(AdminJsScript)); scripter.AddType(typeof(TrafficWatchChange)); scripter.AddType(typeof(NodeConnectionTestResult)); scripter.AddType(typeof(ClientCertificateGenerationResult)); // request with POST parameters scripter.AddType(typeof(DeleteDatabasesOperation.Parameters)); scripter.AddType(typeof(ToggleDatabasesStateOperation.Parameters)); scripter.AddType(typeof(SetIndexesLockOperation.Parameters)); scripter.AddType(typeof(SetIndexesPriorityOperation.Parameters)); scripter.AddType(typeof(AdminRevisionsHandler.Parameters)); scripter.AddType(typeof(ReorderDatabaseMembersOperation.Parameters)); scripter.AddType(typeof(LicenseLimitException)); scripter.AddType(typeof(CompactSettings)); scripter.AddType(typeof(CompactionResult)); scripter.AddType(typeof(CompactionProgress)); // server setup scripter.AddType(typeof(UnsecuredSetupInfo)); scripter.AddType(typeof(SetupInfo)); scripter.AddType(typeof(ContinueSetupInfo)); scripter.AddType(typeof(ClaimDomainInfo)); scripter.AddType(typeof(SetupProgressAndResult)); scripter.AddType(typeof(UserDomainsAndLicenseInfo)); scripter.AddType(typeof(UserDomainsWithIps)); scripter.AddType(typeof(SetupMode)); scripter.AddType(typeof(ConfigurationNodeInfo)); scripter.AddType(typeof(SetupParameters)); // debug scripter.AddType(typeof(ThreadsHandler.ThreadInfo)); scripter.AddType(typeof(MemoryStatsHandler.MemoryInfo)); return(scripter); }
private static Scripter ConfigureTypes(Scripter scripter) { var ignoredTypes = new HashSet <Type> { typeof(IEquatable <>) }; scripter.UsingTypeFilter(type => ignoredTypes.Contains(type) == false); scripter.UsingTypeReader(new TypeReaderWithIgnoreMethods()); scripter.AddType(typeof(DatabaseDocument)); scripter.AddType(typeof(DatabaseStatistics)); scripter.AddType(typeof(IndexDefinition)); // notifications scripter.AddType(typeof(OperationStatusChangeNotification)); scripter.AddType(typeof(DeterminateProgress)); scripter.AddType(typeof(IndeterminateProgress)); scripter.AddType(typeof(OperationExceptionResult)); scripter.AddType(typeof(DocumentChangeNotification)); scripter.AddType(typeof(IndexChangeNotification)); scripter.AddType(typeof(TransformerChangeNotification)); scripter.AddType(typeof(DatabaseOperations.PendingOperation)); // alerts scripter.AddType(typeof(Alert)); scripter.AddType(typeof(GlobalAlertNotification)); scripter.AddType(typeof(AlertNotification)); // indexes scripter.AddType(typeof(IndexStats)); scripter.AddType(typeof(IndexingStatus)); scripter.AddType(typeof(IndexPerformanceStats)); scripter.AddType(typeof(IndexDefinition)); // transformers scripter.AddType(typeof(TransformerDefinition)); // patch scripter.AddType(typeof(PatchRequest)); scripter.AddType(typeof(ResourcesInfo)); // smuggler scripter.AddType(typeof(DatabaseSmugglerOptions)); // versioning scripter.AddType(typeof(VersioningConfiguration)); // replication scripter.AddType(typeof(ReplicationDocument <>)); // sql replication scripter.AddType(typeof(SqlConnections)); scripter.AddType(typeof(SqlReplicationConfiguration)); scripter.AddType(typeof(SqlReplicationStatistics)); scripter.AddType(typeof(SimulateSqlReplication)); // periodic export scripter.AddType(typeof(PeriodicExportConfiguration)); // storage report scripter.AddType(typeof(StorageReport)); scripter.AddType(typeof(DetailedStorageReport)); // map reduce visualizer scripter.AddType(typeof(ReduceTree)); // license scripter.AddType(typeof(License)); scripter.AddType(typeof(UserRegistrationInfo)); scripter.AddType(typeof(LicenseStatus)); return(scripter); }
private static Scripter ConfigureTypes(Scripter scripter) { var ignoredTypes = new HashSet <Type> { typeof(IEquatable <>), typeof(IComparable <>), typeof(IComparable), typeof(IConvertible), typeof(IDisposable), typeof(IFormattable), typeof(Exception) }; scripter.UsingTypeFilter(type => ignoredTypes.Contains(type) == false); scripter.UsingTypeReader(new TypeReaderWithIgnoreMethods()); scripter.AddType(typeof(CollectionStatistics)); scripter.AddType(typeof(BatchRequestParser.CommandData)); scripter.AddType(typeof(DatabasePutResult)); scripter.AddType(typeof(DatabaseRecord)); scripter.AddType(typeof(DatabaseStatistics)); scripter.AddType(typeof(FooterStatistics)); scripter.AddType(typeof(IndexDefinition)); scripter.AddType(typeof(PutIndexResult)); // attachments scripter.AddType(typeof(AttachmentName)); scripter.AddType(typeof(AttachmentDetails)); // notifications scripter.AddType(typeof(AlertRaised)); scripter.AddType(typeof(NotificationUpdated)); scripter.AddType(typeof(OperationChanged)); scripter.AddType(typeof(DatabaseChanged)); scripter.AddType(typeof(ClusterTopologyChanged)); scripter.AddType(typeof(DatabaseStatsChanged)); scripter.AddType(typeof(PerformanceHint)); scripter.AddType(typeof(PagingPerformanceDetails)); // subscriptions scripter.AddType(typeof(SubscriptionConnectionStats)); scripter.AddType(typeof(SubscriptionConnectionOptions)); scripter.AddType(typeof(SubscriptionTryout)); // changes scripter.AddType(typeof(OperationStatusChange)); scripter.AddType(typeof(DeterminateProgress)); scripter.AddType(typeof(IndeterminateProgress)); scripter.AddType(typeof(BulkOperationResult)); scripter.AddType(typeof(IndexCompactionProgress)); scripter.AddType(typeof(IndexCompactionResult)); scripter.AddType(typeof(BulkInsertProgress)); scripter.AddType(typeof(OperationExceptionResult)); scripter.AddType(typeof(DocumentChange)); scripter.AddType(typeof(IndexChange)); scripter.AddType(typeof(Operations.Operation)); scripter.AddType(typeof(NewVersionAvailableDetails)); scripter.AddType(typeof(MessageDetails)); scripter.AddType(typeof(ExceptionDetails)); // indexes scripter.AddType(typeof(IndexStats)); scripter.AddType(typeof(IndexingStatus)); scripter.AddType(typeof(IndexPerformanceStats)); scripter.AddType(typeof(IndexDefinition)); scripter.AddType(typeof(TermsQueryResult)); scripter.AddType(typeof(IndexProgress)); scripter.AddType(typeof(IndexErrors)); // cluster scripter.AddType(typeof(ClusterTopology)); scripter.AddType(typeof(ClusterObserverDecisions)); // query scripter.AddType(typeof(QueryResult <,>)); scripter.AddType(typeof(PutResult)); // patch scripter.AddType(typeof(PatchRequest)); scripter.AddType(typeof(PatchResult)); scripter.AddType(typeof(PatchDebugActions)); scripter.AddType(typeof(DatabasesInfo)); // smuggler scripter.AddType(typeof(DatabaseSmugglerOptions)); scripter.AddType(typeof(SmugglerResult)); // revisions scripter.AddType(typeof(RevisionsConfiguration)); // storage report scripter.AddType(typeof(StorageReport)); scripter.AddType(typeof(DetailedStorageReport)); // map reduce visualizer scripter.AddType(typeof(ReduceTree)); // license scripter.AddType(typeof(License)); scripter.AddType(typeof(UserRegistrationInfo)); scripter.AddType(typeof(LicenseStatus)); // feedback form scripter.AddType(typeof(FeedbackForm)); // io metrics stats scripter.AddType(typeof(IOMetricsHistoryStats)); scripter.AddType(typeof(IOMetricsRecentStats)); scripter.AddType(typeof(IOMetricsRecentStatsAdditionalTypes)); scripter.AddType(typeof(IOMetricsFileStats)); scripter.AddType(typeof(IOMetricsEnvironment)); scripter.AddType(typeof(IOMetricsResponse)); scripter.AddType(typeof(FileStatus)); scripter.AddType(typeof(IoMetrics.MeterType)); // replication stats scripter.AddType(typeof(LiveReplicationPerformanceCollector.OutgoingPerformanceStats)); scripter.AddType(typeof(LiveReplicationPerformanceCollector.IncomingPerformanceStats)); // conflicts scripter.AddType(typeof(GetConflictsResult)); scripter.AddType(typeof(ConflictResolverAdvisor.MergeResult)); // ongoing tasks - common scripter.AddType(typeof(OngoingTasksResult)); scripter.AddType(typeof(OngoingTask)); scripter.AddType(typeof(OngoingTaskType)); scripter.AddType(typeof(OngoingTaskState)); scripter.AddType(typeof(OngoingTaskConnectionStatus)); scripter.AddType(typeof(NodeId)); scripter.AddType(typeof(ModifyOngoingTaskResult)); // ongoing tasks - replication scripter.AddType(typeof(OngoingTaskReplication)); scripter.AddType(typeof(ExternalReplication)); // ongoing tasks - backup scripter.AddType(typeof(OngoingTaskBackup)); scripter.AddType(typeof(PeriodicBackupConfiguration)); scripter.AddType(typeof(PeriodicBackupTestConnectionType)); scripter.AddType(typeof(RestoreBackupConfiguration)); scripter.AddType(typeof(RestorePoints)); scripter.AddType(typeof(NextBackupOccurrence)); // ongoing tasks - subscription scripter.AddType(typeof(OngoingTaskSubscription)); scripter.AddType(typeof(SubscriptionTryout)); scripter.AddType(typeof(DocumentWithException)); scripter.AddType(typeof(SubscriptionStateWithNodeDetails)); scripter.AddType(typeof(SubscriptionConnectionDetails)); scripter.AddType(typeof(ChangeVectorEntry)); scripter.AddType(typeof(SubscriptionCreationOptions)); scripter.AddType(typeof(Constants.Documents.SubscriptionChangeVectorSpecialStates)); scripter.AddType(typeof(SubscriptionOpeningStrategy)); // ongoing tasks - ravenDB ETL scripter.AddType(typeof(OngoingTaskRavenEtl)); scripter.AddType(typeof(RavenEtlConfiguration)); scripter.AddType(typeof(EtlProcessStatistics)); scripter.AddType(typeof(EtlType)); // ongoing tasks - SQL ETL scripter.AddType(typeof(OngoingTaskSqlEtl)); scripter.AddType(typeof(SqlEtlConfiguration)); scripter.AddType(typeof(SimulateSqlEtl)); scripter.AddType(typeof(SqlEtlTable)); // connection strings scripter.AddType(typeof(ConnectionString)); scripter.AddType(typeof(RavenConnectionString)); scripter.AddType(typeof(SqlConnectionString)); scripter.AddType(typeof(ConnectionStringType)); scripter.AddType(typeof(GetConnectionStringsResult)); // certificates scripter.AddType(typeof(CertificateDefinition)); // adminJs console scripter.AddType(typeof(AdminJsScript)); scripter.AddType(typeof(NodeConnectionTestResult)); return(scripter); }
public static string GetTypeScripterPoco(this Type type) { var scripter = new Scripter(); return(scripter.AddType(type).ToString()); }