Exemplo n.º 1
0
        public static ServiceTimer GetScheduler(short serviceId, string apiKey)
        {
            Client       referenceClient = GetClient(apiKey);
            ServiceTimer scheduler       = WebOperations.WebGet <ServiceTimer>(WebOperations.WebMethod.GET_SCHEDULER_BY_CLIENTID_AND_SERVICEID, apiKey, referenceClient.Id, serviceId);

            return(scheduler ?? FileOperations.GetLocalScheduler(serviceId) as ServiceTimer);
        }
Exemplo n.º 2
0
        public static Client GetClient(string apiKey)
        {
            string machineName = Environment.MachineName;
            Client client      = WebOperations.WebGet <Client>(WebOperations.WebMethod.GET_CLIENT_BY_MACHINE_NAME, apiKey, machineName);

            NewClient(apiKey);
            return(client);
        }
Exemplo n.º 3
0
        public static ServiceTimer GetScheduler(short serviceId, int clientId, string apiKey)
        {
            ServiceTimer scheduler = WebOperations.WebGet <ServiceTimer>(WebOperations.WebMethod.GET_SCHEDULER_BY_CLIENTID_AND_SERVICEID, apiKey, clientId, serviceId);

            return(scheduler ?? FileOperations.GetLocalScheduler(serviceId) as ServiceTimer); // (scheduler'i return et null mu??) Local Scheduler'i return et
        }
Exemplo n.º 4
0
 public static bool GetSiteLogActivationStatus()
 {
     return(WebOperations
            .WebGet <bool>(WebOperations.WebMethod.GET_TRANSACTION_ACTIVATION_STATUS,
                           _authToken));
 }
Exemplo n.º 5
0
 public static ISiteLogPosition GetLogPosition(long siteId)
 {
     return(WebOperations
            .WebGet <ISiteLogPosition>(WebOperations.WebMethod.GET_SITE_LOG_POSITON,
                                       _authToken, siteId));
 }
Exemplo n.º 6
0
 public static IEnumerable <SiteLogFilter> GetSiteTransactionFilters()
 {
     return(WebOperations
            .WebGet <IEnumerable <SiteLogFilter> >(WebOperations.WebMethod.GET_TRANSACTION_FILTERS,
                                                   _authToken));
 }
Exemplo n.º 7
0
 public static IEnumerable <Site> GetSites(string machineName)
 {
     return(WebOperations
            .WebGet <IEnumerable <Site> >(WebOperations.WebMethod.GET_SITES_BY_MACHINENAME,
                                          _authToken, machineName));
 }
Exemplo n.º 8
0
 public static SiteWebConfiguration GetConfiguration(long siteId)
 {
     return(WebOperations
            .WebGet <SiteWebConfiguration>(WebOperations.WebMethod.GET_WEB_CONFIGURATION_BY_SITEID,
                                           _authToken, siteId));
 }
Exemplo n.º 9
0
 public static IEnumerable <SiteEndpoint> GetSiteEndpoints(long siteId)
 {
     return(WebOperations
            .WebGet <IEnumerable <SiteEndpoint> >(WebOperations.WebMethod.GET_ENDPOINTS_BY_SITEID,
                                                  _authToken, siteId));
 }
Exemplo n.º 10
0
 public static SiteEndpoint GetSiteEndpoint(long siteId)
 {
     return(WebOperations
            .WebGet <SiteEndpoint>(WebOperations.WebMethod.GET_ENDPOINT_BY_SITEID,
                                   _authToken, siteId));
 }
Exemplo n.º 11
0
 public static SiteLog GetSiteLog(long siteId)
 {
     return(WebOperations
            .WebGet <SiteLog>(WebOperations.WebMethod.GET_EVENT_LOG_BY_SITEID,
                              _authToken, siteId));
 }
Exemplo n.º 12
0
 public static IEnumerable <SiteConnectionString> GetSiteConnectionStrings(long siteId)
 {
     return(WebOperations
            .WebGet <IEnumerable <SiteConnectionString> >(WebOperations.WebMethod.GET_CONNECTION_STRINGS_BY_SITEID,
                                                          _authToken, siteId));
 }
Exemplo n.º 13
0
 public static SiteConnectionString GetConnectionString(long siteId)
 {
     return(WebOperations
            .WebGet <SiteConnectionString>(WebOperations.WebMethod.GET_CONNECTION_STRING_BY_SITEID,
                                           _authToken, siteId));
 }
Exemplo n.º 14
0
 public static SiteBinding GetSiteBinding(long siteId)
 {
     return(WebOperations
            .WebGet <SiteBinding>(WebOperations.WebMethod.GET_BINDING_BY_SITEID,
                                  _authToken, siteId));
 }
Exemplo n.º 15
0
 public static Site GetSite(long siteId)
 {
     return(WebOperations
            .WebGet <Site>(WebOperations.WebMethod.GET_SITE_BY_ID,
                           _authToken, siteId));
 }
Exemplo n.º 16
0
 public static DateTime GetSiteLogLastLogDate(long siteId)
 {
     return(WebOperations
            .WebGet <DateTime>(WebOperations.WebMethod.GET_TRANSACTION_LASTLOGDATE_BY_SITEID,
                               _authToken, siteId));
 }