C2dmSharp.Server.C2dmService.init C# (CSharp) Method

init() private method

private init ( string senderID, string password, string applicationID ) : void
senderID string
password string
applicationID string
return void
        private void init(string senderID, string password, string applicationID)
        {
            //Listens for headers back from google to update our auth token
            C2dmMessageTransport.UpdateGoogleClientAuthToken += delegate(string authToken)
            {
                this.googleAuthToken = authToken;
            };

            C2dmMessageTransportAsync.MessageResponseReceived += delegate(C2dmMessageTransportResponse resp)
            {
            };

            this.SenderID = senderID;
            this.Password = password;
            this.SenderID = senderID;
            this.ApplicationID = applicationID;

            running = false;
            //messages = new ConcurrentQueue<Message>();
            messages = new BlockingCollection<C2dmMessage>();
            workers = new List<C2dmMessageTransportWorker>();

            //Get a new auth token
            RefreshGoogleAuthToken();
        }