protected LongProcessingServiceTests(BindingTypes bindingType, ITestOutputHelper outputHelper)
            : base(outputHelper)
        {
            Server = ServiceFactory.CreateServer<ILongProcessingService, LongProcessingService>(bindingType, false);
            Server.Service.SleepTime = TimeSpan.FromSeconds(3);

            Uri clientUri = null;
            if (bindingType == BindingTypes.DuplexMsmq)
            {
                _clientQueueName = typeof(ILongProcessingService).Name + "_Client-" + Guid.NewGuid();
                MessageQueue.Create(@".\private$\" + _clientQueueName);
                clientUri = new Uri("net.msmq://localhost/private/" + _clientQueueName);
            }
            Client = ServiceFactory.CreateClient<LongProcessingServiceClient>(bindingType, Server.ServiceUri, clientUri);
        }
Пример #2
0
		/// <summary>
		/// Instantiates a new FlowEngineBinder, reading the business rules from a certain URI.
		/// </summary>
		/// <remarks>
		/// The business rules used for the binding must be valid with xBusinessRules.xsd.
		/// </remarks>
		/// <param name="uri">The URI from which the business rules must be read.</param>
		public FlowEngineBinder(string uri, BindingTypes bindingType):base(bindingType) {
			Init(new XBusinessRulesFileDriver(uri));
		}
Пример #3
0
		/// <summary>
		/// Instantiates a new FlowEngineBinder, using a stream for reading the business rules.
		/// </summary>
		/// <remarks>
		/// The business rules used for the binding must be valid with xBusinessRules.xsd.
		/// </remarks>
		/// <param name="stream">The Stream used to read the business rules from.</param>
		public FlowEngineBinder(Stream stream, BindingTypes bindingType):base(bindingType) {
			Init(new XBusinessRulesStreamDriver(stream));
		}
Пример #4
0
		public AbstractBinder(BindingTypes bindingType) {
			BindingType = bindingType;
		}
 protected VanillaServiceTests(BindingTypes bindingType, ITestOutputHelper outputHelper)
     : base(outputHelper)
 {
     Server = ServiceFactory.CreateServer<IVanillaService, VanillaService.VanillaService>(bindingType);
     Client = ServiceFactory.CreateClient<VanillaServiceClient>(bindingType, Server.ServiceUri, null);
 }
Пример #6
0
 public static IDisposable BindColorTo(this Text input, IReactiveProperty <Color> property, BindingTypes bindingType = BindingTypes.Default, params IFilter <Color>[] filters)
 {
     return(GenericBindings.Bind(() => input.color, x => input.color = x, property, bindingType, filters).AddTo(input));
 }
Пример #7
0
 public AbstractBinder(BindingTypes bindingType)
 {
     BindingType = bindingType;
 }
Пример #8
0
 public static IDisposable BindPositionTo(this Transform input, IReactiveProperty <Vector3> property, BindingTypes bindingType = BindingTypes.Default, params IFilter <Vector3>[] filters)
 {
     return(GenericBindings.Bind(() => input.position, x => input.transform.position = x, property, bindingType, filters).AddTo(input));
 }
Пример #9
0
 public static IDisposable BindScaleTo(this Transform input, Func <Vector3> getter, Action <Vector3> setter, BindingTypes bindingType = BindingTypes.Default, params IFilter <Vector3>[] filters)
 {
     return(GenericBindings.Bind(() => input.localScale, x => input.transform.localScale = x, getter, setter, bindingType, filters).AddTo(input));
 }
Пример #10
0
 public static IDisposable BindRotationTo(this Transform input, Func <Quaternion> getter, Action <Quaternion> setter, BindingTypes bindingType = BindingTypes.Default, params IFilter <Quaternion>[] filters)
 {
     return(GenericBindings.Bind(() => input.rotation, x => input.transform.rotation = x, getter, setter, bindingType, filters).AddTo(input));
 }