Exemplo n.º 1
0
 public EvaluateController
 (
     IEvaluator evaluatorService,
     ISynthesisRepository synthesisRepository,
     IAnalysisRepository analysisRepository,
     IMicrosoftSQL microsoftSQLService,
     IQueue queue,
     ISignalR <SynthesisProgressHub> synthesisSignalR,
     ISignalR <AnalysisProgressHub> analysisSignalR,
     IServiceScopeFactory serviceScopeFactory,
     IOptions <SqlServerAdminConnection> sqlServerAdmin,
     IMsGraph msGraph
 )
 {
     _evaluatorService    = evaluatorService;
     _synthesisRepo       = synthesisRepository;
     _analysisRepo        = analysisRepository;
     _microsoftSQLService = microsoftSQLService;
     _queue               = queue;
     _synthesisSignalR    = synthesisSignalR;
     _analysisSignalR     = analysisSignalR;
     _serviceScopeFactory = serviceScopeFactory;
     _sqlServerAdmin      = sqlServerAdmin.Value;
     _msGraph             = msGraph;
 }
Exemplo n.º 2
0
 public CacheDistributed(DefaultCacheOptions options, IDistributedCache l2Cache, IEnvironmentSettings env, ISignalR signalR)
 {
     Options = options.Item;
     L2Cache = l2Cache;
     Env     = env;
     SignalR = signalR;
 }
Exemplo n.º 3
0
 /// <summary>
 /// Sends a message to the SignalR Hub
 /// </summary>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="method">The name of the method inside the hub to invoke</param>
 /// <param name="arg1">The 1st argument (Optional)</param>
 /// <param name="arg2">The 2nd argument (Optional)</param>
 /// <param name="arg3">The 3rd argument (Optional)</param>
 /// <param name="arg4">The 4th argument (Optional)</param>
 /// <param name="arg5">The 5th argument (Optional)</param>
 /// <param name="arg6">The 6th argument (Optional)</param>
 /// <returns>True if the message was sent asynchronously (no guarantee of delivery)</returns>
 public static async Task <bool> Send(ISignalR signalR, string url, string method, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6) => await signalR.Send(url, method, arg1, arg2, arg3, arg4, arg5, arg6);
Exemplo n.º 4
0
 /// <summary>
 /// Sends a message to the SignalR Hub
 /// </summary>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="method">The name of the method inside the hub to invoke</param>
 /// <param name="arg1">The 1st argument (Optional)</param>
 /// <returns>True if the message was sent asynchronously (no guarantee of delivery)</returns>
 public static async Task <bool> Send(ISignalR signalR, string url, string method, object arg1) => await signalR.Send(url, method, arg1);
Exemplo n.º 5
0
 /// <summary>
 /// Receives a message
 /// </summary>
 /// <remarks>
 /// This should be called in the application start file if you want it to live for the entire scope of the application
 /// </remarks>
 /// <typeparam name="T1">The type of 1st parameter</typeparam>
 /// <typeparam name="T2">The type of 2nd parameter</typeparam>
 /// <typeparam name="T3">The type of 3rd parameter</typeparam>
 /// <typeparam name="T4">The type of 4th parameter</typeparam>
 /// <typeparam name="T5">The type of 5th parameter</typeparam>
 /// <typeparam name="T6">The type of 6th parameter</typeparam>
 /// <typeparam name="T7">The type of 7th parameter</typeparam>
 /// <typeparam name="T8">The type of 8th parameter</typeparam>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="context">The name of the context that was invoked</param>
 /// <param name="method">A function to execute upon being called</param>
 public static Task Receive <T1, T2, T3, T4, T5, T6, T7, T8>(ISignalR signalR, string url, string context, Action <T1, T2, T3, T4, T5, T6, T7, T8> method) => signalR.Receive(url, context, method);
Exemplo n.º 6
0
 /// <summary>
 /// Sends a message to the SignalR Hub
 /// </summary>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="method">The name of the method inside the hub to invoke</param>
 /// <returns>True if the message was sent asynchronously (no guarantee of delivery)</returns>
 public static async Task <bool> Send(ISignalR signalR, string url, string method) => await signalR.Send(url, method);
Exemplo n.º 7
0
 /// <summary>
 /// Receives a message
 /// </summary>
 /// <remarks>
 /// This should be called in the application start file if you want it to live for the entire scope of the application
 /// </remarks>
 /// <typeparam name="T1">The type of 1st parameter</typeparam>
 /// <typeparam name="T2">The type of 2nd parameter</typeparam>
 /// <param name="signalR">The instance of the ISignalR interface</param>
 /// <param name="url">The name of the url to the hub</param>
 /// <param name="context">The name of the context that was invoked</param>
 /// <param name="method">A function to execute upon being called</param>
 public static Task Receive <T1, T2>(ISignalR signalR, string url, string context, Action <T1, T2> method) => signalR.Receive(url, context, method);