annotate Implab/IServiceLocator.cs @ 187:dd4a3590f9c6 ref20160224

Reworked cancelation handling, if the cancel handler isn't specified the OperationCanceledException will be handled by the error handler Any unhandled OperationCanceledException will cause the promise cancelation
author cin
date Tue, 19 Apr 2016 17:35:20 +0300
parents 48763f3b5db8
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
40
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
1 using System;
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
2 using System.Collections.Generic;
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
3 using System.Linq;
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
4 using System.Text;
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
5 using System.Threading.Tasks;
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
6
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
7 namespace Implab {
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
8 public interface IServiceLocator: IServiceProvider {
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
9 T GetService<T>();
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
10 bool TryGetService<T>(out T service);
69
48763f3b5db8 service locator refactoring
cin
parents: 40
diff changeset
11 bool TryGetService (Type serviceType, out object service);
40
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
12 }
fe33f4e02ad5 improved tracing
cin
parents:
diff changeset
13 }