# opentouryoproject/sampleprogram architecture

> Architecture diagram of the GitHub repository opentouryoproject/sampleprogram, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/opentouryoproject/sampleprogram
- Repository: https://github.com/opentouryoproject/sampleprogram

## Overview

##### Project type and purpose
- This is not one monolithic application but a “sample‐program” repository (“SampleProgram”) designed for technology verification and demonstration.
- It contains multiple categories of standalone sample projects (ASPNET, Azure, UISubsystem, PkgMgr, Nunit, Other, plus Template experiments) each illustrating a specific framework or feature.

##### File structure
- Top level directories represent the main sample categories:
- Template (future OpenTouryoTemplates experiments)
- ASPNET (ASP.NET WebForms, SignalR, authentication flows)
- Azure (.NET on Spark, Elastic Database scaling examples)
- UISubsystem (WPF UI‐subsystem patterns: animation, data binding, validation, triggers, etc.)
- PkgMgr (NuGet & npm packaging prototypes)
- Nunit (unit‐test automation examples)
- Other (miscellaneous interop, encryption, IPC, threading)
- Each category breaks down into its own solution or project subfolders, including build scripts, configuration files, code, and readmes.
- There is no cross‐category code sharing; each sample is self-contained.

##### README for additional insights
- The README confirms this is a collection of technology‐proof‐of‐concepts without a single runtime flow.
- It notes that these samples are for technical validation, not production deployment.

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "SampleProgram Repo"
        subgraph "ASPNET Samples"
            Auth["AuthN & AuthZ (WS-Fed, OIDC)"]:::aspnet
            MSTrans["MSTranslatorAPI"]:::aspnet
            SignalR["SignalR Chat"]:::aspnet
            WebForm["WebForms Demos"]:::aspnet
        end
        subgraph "Azure Samples"
            Spark[".NET for Apache Spark"]:::azure
            ElasticDB["ElasticDatabase Scaling"]:::azure
        end
        subgraph "UISubsystem (WPF)"
            Anim["Animation"]:::ui
            DataBind["DataBinding"]:::ui
            InputSup["Input Support"]:::ui
            CtrlTemp["Control Templates"]:::ui
            Triggers["Triggers"]:::ui
            Validation["Validation"]:::ui
        end
        subgraph "PkgMgr"
            NuGet["NuGet Packaging"]:::pkg
            npm["npm Packaging"]:::pkg
        end
        subgraph "NUnit Tests"
            NUnit["Public.Test"]:::test
        end
        subgraph "Other Samples"
            BinSer["Binary Serialization"]:::other
            Interop["Native-.NET Interop"]:::other
            Encryption["Encryption"]:::other
            IPC["Inter-process Comm"]:::other
            COM["Unmanaged Interop"]:::other
            Pipes["Pipe/StdIO"]:::other
            ThreadSafe["Threading/TPL"]:::other
            AutoWrap["VC++ Wrapper Gen"]:::other
        end
        subgraph "Template Experiments"
            Cordova["Cordova Template"]:::template
            Flutter["Flutter Template"]:::template
            ReactSPA["React/Redux SPA"]:::template
            SPAExtra["Additional SPA Templates"]:::template
        end
    end

    click Auth "https://github.com/opentouryoproject/sampleprogram/tree/master//ASPNET/AuthN_AuthZ"
    click MSTrans "https://github.com/opentouryoproject/sampleprogram/tree/master//ASPNET/MSTranslatorAPI"
    click SignalR "https://github.com/opentouryoproject/sampleprogram/tree/master//ASPNET/SignalR"
    click WebForm "https://github.com/opentouryoproject/sampleprogram/tree/master//ASPNET/WebForm"
    click Spark "https://github.com/opentouryoproject/sampleprogram/tree/master//Azure/DotNet4ApacheSpark"
    click ElasticDB "https://github.com/opentouryoproject/sampleprogram/tree/master//Azure/ElasticDatabase"
    click Anim "https://github.com/opentouryoproject/sampleprogram/tree/master//UISubsystem/WPF/Animation"
    click DataBind "https://github.com/opentouryoproject/sampleprogram/tree/master//UISubsystem/WPF/DataBinding"
    click InputSup "https://github.com/opentouryoproject/sampleprogram/tree/master//UISubsystem/WPF/InputSupport"
    click CtrlTemp "https://github.com/opentouryoproject/sampleprogram/tree/master//UISubsystem/WPF/Template"
    click Triggers "https://github.com/opentouryoproject/sampleprogram/tree/master//UISubsystem/WPF/Trigger"
    click Validation "https://github.com/opentouryoproject/sampleprogram/tree/master//UISubsystem/WPF/Validation"
    click NuGet "https://github.com/opentouryoproject/sampleprogram/tree/master//PkgMgr/NuGet"
    click npm "https://github.com/opentouryoproject/sampleprogram/tree/master//PkgMgr/npm"
    click NUnit "https://github.com/opentouryoproject/sampleprogram/blob/master//Nunit/Public.Test"
    click BinSer "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/BinarySerialize/TestBinarySerializeXplat"
    click Interop "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/DotNETBridge"
    click Encryption "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/Encryption"
    click IPC "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/InterProcComm"
    click COM "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/InteropWithUnmanage"
    click Pipes "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/PipesFamilyHouse"
    click ThreadSafe "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/ThreadSafe"
    click AutoWrap "https://github.com/opentouryoproject/sampleprogram/tree/master//Other/VC_Samples/VC_AutoWrap"
    click Cordova "https://github.com/opentouryoproject/sampleprogram/tree/master//Template/MobileTemplate/CordovaTemplate"
    click Flutter "https://github.com/opentouryoproject/sampleprogram/tree/master//Template/MobileTemplate/flutter_template"
    click ReactSPA "https://github.com/opentouryoproject/sampleprogram/tree/master//Template/SPATemplate/react-redux-todo"
    click SPAExtra "https://github.com/opentouryoproject/sampleprogram/tree/master//Template/SPATemplate"

    classDef aspnet fill:#1f77b4,stroke:#000,color:#fff
    classDef azure fill:#2ca02c,stroke:#000,color:#fff
    classDef ui fill:#ff7f0e,stroke:#000,color:#fff
    classDef pkg fill:#9467bd,stroke:#000,color:#fff
    classDef test fill:#d62728,stroke:#000,color:#fff
    classDef other fill:#7f7f7f,stroke:#000,color:#fff
    classDef template fill:#17becf,stroke:#000,color:#fff
```
