Copyright (C) 2020 Takym
This framework library, also known as TakymLib or DotnetExlib, provides the service-oriented programming. View more specification (Japanese).
using System;
using System.Threading.Tasks;
using ExapisSOP;
using ExapisSOP.Core;
namespace Example
{
internal class Program : AppWorker // Needs to extend AppWorker class.
{
// This function is called when initializing.
// Sets the update event method.
public override async Task InitializeAsync(IContext context)
{
this.Update += this.Program_Update;
await base.InitializeAsync(context);
}
// Update event
private void Program_Update(object? sender, ContextEventArgs e)
{
// TODO: write your code in here:
Console.WriteLine("Hello, World!!");
Console.ReadKey(true);
// Terminate the program:
throw new TerminationException();
}
// Entry point
[STAThread()]
private static async Task<int> Main(string[] args)
{
// Configure how to run the application:
// (If you change the order, it does not work correctly.)
return await HostRunner.Create(args).Configure(
config => config
.AddSystemServices() // Adds system services
.AddAppWorker<Program>() // Adds Program as an AppWorker
).Build().RunAsync();
}
}
}
# | Version | Code Name | Date | Description |
---|---|---|---|---|
5 | v0.1.0.0 | xsop01a0 | 2020/00/00 | Created the tool "ExapisSOP.Tools.EncodingFixer". |
4 | v0.0.1.2 | xsop00b2 | 2020/10/26 | Implemented the connection model interfaces and classes. |
3 | v0.0.1.1 | xsop00b1 | 2020/10/21 | Fixed a bug in the tool "ExapisSOP.Tools.PackageDependencyFixer". |
2 | v0.0.1.0 | xsop00b0 | 2020/10/21 | Created the tool "ExapisSOP.Tools.PackageDependencyFixer". |
For more history, please see CHANGES.en.md file. |
This library is released and distributed under the MIT License. Please see LICENSE.txt file.
Feel free to submit an issue if the library have bugs, vulnerabilities, or suggestions of new feature. Please note below when you propose a pull request (PR):
- One PR can have only one change.
- Do not use/refer other libraries.
- Copyrights will be transferred to @Takym when the PR is merged.
- You do not exercise the moral rights.
- Not always merge your PR.
- Write your name and GitHub ID in CONTRIBUTORS.md.
このフレームワークライブラリ(TakymLib、DotnetExlibとも呼びます)はサービス指向プログラミングに必要な機能を提供します。 詳細な仕様はこちらからご覧ください。
using System;
using System.Threading.Tasks;
using ExapisSOP;
using ExapisSOP.Core;
namespace Example
{
internal class Program : AppWorker // AppWorker クラスを継承する必要があります。
{
// この関数は初期化時に呼び出されます。
// 更新イベントを設定しています。
public override async Task InitializeAsync(IContext context)
{
this.Update += this.Program_Update;
await base.InitializeAsync(context);
}
// 更新イベント
private void Program_Update(object? sender, ContextEventArgs e)
{
// TODO: ここにコードを書いてください:
Console.WriteLine("Hello, World!!");
Console.ReadKey(true);
// プログラムを終了させます。
throw new TerminationException();
}
// 開始地点
[STAThread()]
private static async Task<int> Main(string[] args)
{
// アプリケーションの実行に関する設定を行います。
// (順番を変えると正しく動作しない可能性があります。)
return await HostRunner.Create(args).Configure(
config => config
.AddSystemServices() // 標準のサービスを追加します。
.AddAppWorker<Program>() // Program を AppWorker として追加します。
).Build().RunAsync();
}
}
}
# | バージョン | 開発コード名 | 日付 | 説明 |
---|---|---|---|---|
5 | v0.1.0.0 | xsop01a0 | 2020/00/00 | ツール「ExapisSOP.Tools.EncodingFixer」作成。 |
4 | v0.0.1.2 | xsop00b2 | 2020/10/26 | 接続可能なオブジェクトを実装。 |
3 | v0.0.1.1 | xsop00b1 | 2020/10/21 | ツール「ExapisSOP.Tools.PackageDependencyFixer」の不具合修正。 |
2 | v0.0.1.0 | xsop00b0 | 2020/10/21 | ツール「ExapisSOP.Tools.PackageDependencyFixer」作成。 |
過去の更新はCHANGES.ja.mdをご覧ください。 |
このライブラリはMITライセンスの下で公開・配布されています。 詳細はLICENSE.txtから確認してください。
問題が見つかれば是非気軽に Issue の投稿をしてください。 新規機能の提案も受け付けています。 プル・リクエスト(PR)も受け付けていますが以下の点に注意してください。
- 一つのPRは一つの変更のみにしてください。
- 他の既存のライブラリを参照しないでください。
- マージされた場合、著作権、知的財産権は@Takymに譲渡されます。
- 貴方は著作者人格権を行使しない事を約束します。
- 必ずマージされるわけではありません。
- 貴方の名前と GitHub ID をCONTRIBUTORS.mdに記入してください。