using System.ServiceModel; using StockService.Interfaces; using Stocks; namespace StockService.Interfaces { /// <summary> /// This interface contains methods that client can call to subscribe or unsubscrube to notifications from database /// </summary> [ServiceContract(Namespace = "StockService.Services.Interfaces", CallbackContract = typeof(IStockSessionCallbackContract))] public interface ISessionsController { /// <summary> /// This method should be executed to subscribe to notifications from server. /// </summary> [OperationContract(IsOneWay = true)] void SubscribeToNotifications(string browserName); /// <summary> /// This method should be executed to unsubscribe to notifications from server. /// </summary> [OperationContract(IsOneWay = true)] void UnsubscribeToNotifications(); } }
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.
This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)