GithubHelp home page GithubHelp logo

michaelpuckett2 / speckystandard Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 92 KB

.NET Standard project to assist with DI, MVVM, XAML, and more...

License: GNU General Public License v3.0

C# 100.00%
csharp dotnet-standard mvvm dependency-injection attribute-injection observable notify uwp wpf dotnet-core dotnet spring prism

speckystandard's Introduction

This repo is now obsolete. https://github.com/MichaelPuckett2/Specky is the replacement.

SpeckyStandard

Simplified injection:

  1. Introduce a Speck.

     [Speck]
     public class Log
     {
         public void Print(string message)
         {
             Console.WriteLine(message);
         }
     }
    
  2. Introduce a Speck to a Speck.

     [Speck]
     public class Worker
     {
         [SpeckAuto]
         readonly Log log;
     }
    
  3. Start when introductions are complete.

     [SpeckAuto]
     readonly Log log;
    
     [SpeckPost]
     public void Start()
     {
         Log.Print("Working...");
         //...
     }
    

  1. Add Configurations.

     [SpeckConfiguration("Test")]
     class TestConfiguration
     {
         readonly string Reason = "Testing";
         readonly List<string> Names = new List<string>()
         {
             "Mathew", "Mark", "Luke", "John"
         };
     }
    
  2. Set Configurations.

     [SpeckConfigurationAuto]
     public List<string> Names { get; }
    
  3. Choose Configuration on startup.

     SpeckAutoStrapper.Start(configuration: "Test");
    

Simple examples... There's more and much more coming.

Specky is open source and free to use and distribute.

I love, worship, and praise God with all my heart, might, and strength! - (Michael Brian Puckett, II)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.