예제 #1
0
    private void Button_Click(object sender, EventArgs e)
    {
        // create a module intstance, passing this form as parameter
        var module = new SomeModule(this);

        module.DoSomeWork();
    }
예제 #2
0
 public void ConfigureServices(IServiceProvider sp, IServiceCollection services)
 {
     SomeModule = sp.GetRequiredService <SomeModule>();
 }
예제 #3
0
파일: QueryTests.cs 프로젝트: csuffyy/Cedar
 public QueryTests()
 {
     _module   = new SomeModule();
     _resolver = new HandlerResolver(_module);
 }
예제 #4
0
 public QueryTests()
 {
     _module = new SomeModule();
     _resolver = new HandlerResolver(_module);
 }