public Task Start()
 {
     return(Task.Factory.StartNew(() => {
         _runner = _source();
         _runner.WaitForMessage <LoaderStarted>();
     }));
 }
Exemple #2
0
 public void start_with_a_parallel_folder()
 {
     using (var runner = new RemoteServiceRunner(x => {
         x.UseParallelServiceDirectory("ApplicationLoaderService");
     }))
     {
         runner.WaitForMessage <LoaderStarted>().LoaderTypeName.ShouldContain("MyApplicationLoader");
     }
 }
Exemple #3
0
        public void start_with_only_the_folder_name_with_an_IApplicationLoader()
        {
            var servicePath = ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory().AppendPath("ApplicationLoaderService");

            using (var runner = new RemoteServiceRunner(servicePath))
            {
                runner.WaitForMessage <LoaderStarted>().LoaderTypeName.ShouldContain("MyApplicationLoader");
            }
        }
 public void start_with_only_the_folder_name_with_an_IApplicationLoader()
 {
     var servicePath = ".".ToFullPath().ParentDirectory().ParentDirectory().ParentDirectory().AppendPath("ApplicationLoaderService");
     using (var runner = new RemoteServiceRunner(servicePath))
     {
         runner.WaitForMessage<LoaderStarted>().LoaderTypeName.ShouldContain("MyApplicationLoader");
     }
 }
 public void start_with_a_parallel_folder()
 {
     using (var runner = new RemoteServiceRunner(x => {
         x.UseParallelServiceDirectory("ApplicationLoaderService");
     }))
     {
         runner.WaitForMessage<LoaderStarted>().LoaderTypeName.ShouldContain("MyApplicationLoader");
     }
 }