public Task <MessagingResult> Create(CreateServiceMessage message)
        {
            var service = _serviceFactory.Resolve(message.ServiceName, message.Parameters);

            ClassServiceInstance instance = new ClassServiceInstance(service);

            _serviceRepository.Add(instance);

            return(Task.FromResult <MessagingResult>(new MessagingResult(instance.Key)));
        }
 public ObservableServiceInstance(ClassServiceInstance container, ObservableProxy observableProxy, ServiceKey key) : base(container, key)
 {
     ObservableProxy = observableProxy;
 }
 public ObservableServiceInstance(ClassServiceInstance container,
                                  ObservableProxy observableProxy,
                                  string name) : this(container, observableProxy, CreateKeyFor(container, name))
 {
 }