/// <summary> /// Initializes a new instance of the <see cref="GrainMethodInvoker"/> class. /// </summary> /// <param name="grain">The grain.</param> /// <param name="request">The request.</param> /// <param name="rootInvoker">The generated invoker.</param> /// <param name="filters">The invocation interceptors.</param> /// <param name="interfaceToImplementationMapping">The implementation map.</param> public GrainMethodInvoker( IAddressable grain, InvokeMethodRequest request, IGrainMethodInvoker rootInvoker, List <IIncomingGrainCallFilter> filters, InterfaceToImplementationMappingCache interfaceToImplementationMapping) { this.request = request; this.rootInvoker = rootInvoker; this.Grain = grain; this.filters = filters; this.interfaceToImplementationMapping = interfaceToImplementationMapping; }
/// <summary> /// Initializes a new instance of the <see cref="GrainMethodInvoker"/> class. /// </summary> /// <param name="grainContext">The grain.</param> /// <param name="request">The request.</param> /// <param name="filters">The invocation interceptors.</param> /// <param name="interfaceToImplementationMapping">The implementation map.</param> /// <param name="responseCopier">The response copier.</param> public GrainMethodInvoker( IGrainContext grainContext, IInvokable request, List <IIncomingGrainCallFilter> filters, InterfaceToImplementationMappingCache interfaceToImplementationMapping, DeepCopier <Response> responseCopier) { this.request = request; this.grainContext = grainContext; this.filters = filters; this.interfaceToImplementationMapping = interfaceToImplementationMapping; this.responseCopier = responseCopier; }
public GrainReferenceRuntime( IRuntimeClient runtimeClient, IGrainCancellationTokenRuntime cancellationTokenRuntime, SerializationManager serializationManager, IEnumerable <IOutgoingGrainCallFilter> outgoingCallFilters, TypeMetadataCache typeMetadataCache) { this.grainReferenceMethodCache = new InterfaceToImplementationMappingCache(); this.sendRequestDelegate = SendRequest; this.RuntimeClient = runtimeClient; this.cancellationTokenRuntime = cancellationTokenRuntime; this.GrainReferenceFactory = new GrainReferenceFactory(typeMetadataCache, this); this.serializationManager = serializationManager; this.filters = outgoingCallFilters.ToArray(); }
/// <summary> /// Initializes a new instance of the <see cref="OutgoingCallInvoker"/> class. /// </summary> /// <param name="grain">The grain reference.</param> /// <param name="request">The request.</param> /// <param name="options"></param> /// <param name="sendRequest"></param> /// <param name="filters">The invocation interceptors.</param> /// <param name="mapping">The implementation map.</param> public OutgoingCallInvoker( GrainReference grain, InvokeMethodRequest request, InvokeMethodOptions options, Func <GrainReference, InvokeMethodRequest, InvokeMethodOptions, Task <object> > sendRequest, InterfaceToImplementationMappingCache mapping, IOutgoingGrainCallFilter[] filters) { this.request = request; this.options = options; this.sendRequest = sendRequest; this.mapping = mapping; this.grainReference = grain; this.filters = filters; }
public GrainReferenceRuntime( ILogger <GrainReferenceRuntime> logger, IRuntimeClient runtimeClient, IGrainCancellationTokenRuntime cancellationTokenRuntime, IInternalGrainFactory internalGrainFactory, SerializationManager serializationManager, IEnumerable <IOutgoingGrainCallFilter> outgoingCallFilters) { this.grainReferenceMethodCache = new InterfaceToImplementationMappingCache(); this.sendRequestDelegate = SendRequest; this.logger = logger; this.RuntimeClient = runtimeClient; this.cancellationTokenRuntime = cancellationTokenRuntime; this.internalGrainFactory = internalGrainFactory; this.serializationManager = serializationManager; this.filters = outgoingCallFilters.ToArray(); }
public GrainReferenceRuntime( IRuntimeClient runtimeClient, IGrainCancellationTokenRuntime cancellationTokenRuntime, SerializationManager serializationManager, IEnumerable <IOutgoingGrainCallFilter> outgoingCallFilters, GrainReferenceActivator referenceActivator, GrainInterfaceTypeResolver interfaceTypeResolver) { this.grainReferenceMethodCache = new InterfaceToImplementationMappingCache(); this.sendRequestDelegate = SendRequest; this.RuntimeClient = runtimeClient; this.cancellationTokenRuntime = cancellationTokenRuntime; this.serializationManager = serializationManager; this.referenceActivator = referenceActivator; this.interfaceTypeResolver = interfaceTypeResolver; this.filters = outgoingCallFilters.ToArray(); }