Exemple #1
0
        public virtual ServiceStub CreateStub(string objecttype, string path, ClientContext context)
        {
            string extdef = ServiceDefinitionUtil.SplitQualifiedName(objecttype).Item1;

            if (extdef == this.GetServiceName())
            {
                throw new InvalidOperationException("Invalid service factory request");
            }
            if (this.context == null)
            {
                return(node.GetServiceType(extdef).CreateStub(objecttype, path, context));
            }
            else
            {
                return(this.context.GetPulledServiceType(extdef).CreateStub(objecttype, path, context));
            }
        }